forked from qt-creator/qt-creator
Valgrind: De-slot
Change-Id: Id72d2463201107ae53d8be3d0f3ac30ec88530a4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b7cd7ca66c
commit
485fa9c888
@@ -68,22 +68,20 @@ public:
|
|||||||
*/
|
*/
|
||||||
void getLocalDataFile();
|
void getLocalDataFile();
|
||||||
|
|
||||||
Q_SIGNALS:
|
signals:
|
||||||
void finished(Valgrind::Callgrind::CallgrindController::Option option);
|
void finished(Valgrind::Callgrind::CallgrindController::Option option);
|
||||||
|
|
||||||
void localParseDataAvailable(const QString &file);
|
void localParseDataAvailable(const QString &file);
|
||||||
|
|
||||||
void statusMessage(const QString &msg);
|
void statusMessage(const QString &msg);
|
||||||
|
|
||||||
private Q_SLOTS:
|
private:
|
||||||
void processError(QProcess::ProcessError);
|
void processError(QProcess::ProcessError);
|
||||||
void processFinished(int, QProcess::ExitStatus);
|
void processFinished(int, QProcess::ExitStatus);
|
||||||
|
|
||||||
void foundRemoteFile();
|
void foundRemoteFile();
|
||||||
void sftpInitialized();
|
void sftpInitialized();
|
||||||
void sftpJobFinished(QSsh::SftpJobId job, const QString &error);
|
void sftpJobFinished(QSsh::SftpJobId job, const QString &error);
|
||||||
|
|
||||||
private:
|
|
||||||
void cleanupTempFile();
|
void cleanupTempFile();
|
||||||
|
|
||||||
// callgrind_control process
|
// callgrind_control process
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ public:
|
|||||||
FileNameRole
|
FileNameRole
|
||||||
};
|
};
|
||||||
|
|
||||||
public slots:
|
|
||||||
/// enable/disable cycle detection
|
/// enable/disable cycle detection
|
||||||
void enableCycleDetection(bool enabled);
|
void enableCycleDetection(bool enabled);
|
||||||
void setShortenTemplates(bool enabled);
|
void setShortenTemplates(bool enabled);
|
||||||
|
|||||||
@@ -56,13 +56,11 @@ public:
|
|||||||
// get and take ownership of the parsing results. If this function is not called the repository
|
// get and take ownership of the parsing results. If this function is not called the repository
|
||||||
// will be destroyed when the parser is destroyed. Subsequent calls return null.
|
// will be destroyed when the parser is destroyed. Subsequent calls return null.
|
||||||
ParseData *takeData();
|
ParseData *takeData();
|
||||||
|
void parse(QIODevice *stream);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void parserDataReady();
|
void parserDataReady();
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void parse(QIODevice *stream);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class Private;
|
class Private;
|
||||||
Private *const d;
|
Private *const d;
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ public:
|
|||||||
/// Only functions with an inclusive cost ratio above this minimum will be shown in the model
|
/// Only functions with an inclusive cost ratio above this minimum will be shown in the model
|
||||||
double minimumInclusiveCostRatio() const { return m_minimumInclusiveCostRatio; }
|
double minimumInclusiveCostRatio() const { return m_minimumInclusiveCostRatio; }
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
/// This will filter out all entries that are not located within \param baseDir
|
/// This will filter out all entries that are not located within \param baseDir
|
||||||
void setFilterBaseDir(const QString& baseDir);
|
void setFilterBaseDir(const QString& baseDir);
|
||||||
void setFilterFunction(const Function *call);
|
void setFilterFunction(const Function *call);
|
||||||
@@ -59,7 +58,7 @@ public Q_SLOTS:
|
|||||||
/// by this model. If @c 0 is passed as argument, all rows will be shown.
|
/// by this model. If @c 0 is passed as argument, all rows will be shown.
|
||||||
void setMinimumInclusiveCostRatio(double minimumInclusiveCost);
|
void setMinimumInclusiveCostRatio(double minimumInclusiveCost);
|
||||||
|
|
||||||
Q_SIGNALS:
|
signals:
|
||||||
void filterFunctionChanged(const Function *previous, const Function *current);
|
void filterFunctionChanged(const Function *previous, const Function *current);
|
||||||
void filterMaximumRowsChanged(int rows);
|
void filterMaximumRowsChanged(int rows);
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ public:
|
|||||||
bool hasPrevious() const { return !m_stack.isEmpty(); }
|
bool hasPrevious() const { return !m_stack.isEmpty(); }
|
||||||
bool hasNext() const { return !m_redoStack.isEmpty(); }
|
bool hasNext() const { return !m_redoStack.isEmpty(); }
|
||||||
|
|
||||||
public slots:
|
|
||||||
void goBack();
|
void goBack();
|
||||||
void goNext();
|
void goNext();
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ public:
|
|||||||
|
|
||||||
Valgrind::Callgrind::ParseData *takeParserData();
|
Valgrind::Callgrind::ParseData *takeParserData();
|
||||||
|
|
||||||
public slots:
|
|
||||||
/// controller actions
|
/// controller actions
|
||||||
void dump();
|
void dump();
|
||||||
void reset();
|
void reset();
|
||||||
|
|||||||
@@ -57,17 +57,14 @@ public:
|
|||||||
|
|
||||||
void setMinimumInclusiveCostRatio(double ratio);
|
void setMinimumInclusiveCostRatio(double ratio);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setText(const QString &message);
|
void setText(const QString &message);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void functionActivated(const Valgrind::Callgrind::Function *);
|
void functionActivated(const Valgrind::Callgrind::Function *);
|
||||||
void functionSelected(const Valgrind::Callgrind::Function *);
|
void functionSelected(const Valgrind::Callgrind::Function *);
|
||||||
|
|
||||||
protected slots:
|
|
||||||
void populateScene();
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void populateScene();
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event);
|
||||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
void mouseDoubleClickEvent(QMouseEvent *event);
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event);
|
||||||
|
|||||||
@@ -51,14 +51,13 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void logMessageReceived(const QByteArray &);
|
void logMessageReceived(const QByteArray &);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void localHostAddressRetrieved(const QHostAddress &localHostAddress);
|
void localHostAddressRetrieved(const QHostAddress &localHostAddress);
|
||||||
|
|
||||||
void xmlSocketConnected();
|
void xmlSocketConnected();
|
||||||
void logSocketConnected();
|
void logSocketConnected();
|
||||||
void readLogSocket();
|
void readLogSocket();
|
||||||
|
|
||||||
private:
|
|
||||||
QString tool() const;
|
QString tool() const;
|
||||||
|
|
||||||
bool startServers(const QHostAddress &localHostAddress);
|
bool startServers(const QHostAddress &localHostAddress);
|
||||||
|
|||||||
@@ -46,14 +46,10 @@ public:
|
|||||||
void setDefaultSuppressionFile(const QString &suppFile);
|
void setDefaultSuppressionFile(const QString &suppFile);
|
||||||
QString defaultSuppressionFile() const;
|
QString defaultSuppressionFile() const;
|
||||||
ValgrindBaseSettings *settings() const { return m_settings; }
|
ValgrindBaseSettings *settings() const { return m_settings; }
|
||||||
|
|
||||||
public slots:
|
|
||||||
void settingsChanged(ValgrindBaseSettings *settings);
|
void settingsChanged(ValgrindBaseSettings *settings);
|
||||||
|
|
||||||
private slots:
|
|
||||||
void suppressError();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void suppressError();
|
||||||
QList<QAction *> customActions() const override;
|
QList<QAction *> customActions() const override;
|
||||||
|
|
||||||
QAction *m_suppressAction;
|
QAction *m_suppressAction;
|
||||||
|
|||||||
@@ -52,10 +52,8 @@ public:
|
|||||||
const QList<XmlProtocol::Error> &errors);
|
const QList<XmlProtocol::Error> &errors);
|
||||||
static void maybeShow(MemcheckErrorView *view);
|
static void maybeShow(MemcheckErrorView *view);
|
||||||
|
|
||||||
private slots:
|
|
||||||
void validate();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void validate();
|
||||||
void accept();
|
void accept();
|
||||||
void reject();
|
void reject();
|
||||||
|
|
||||||
|
|||||||
@@ -50,17 +50,15 @@ public:
|
|||||||
void setSuppressions(const QStringList &files);
|
void setSuppressions(const QStringList &files);
|
||||||
QStringList suppressions() const;
|
QStringList suppressions() const;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void slotAddSuppression();
|
void slotAddSuppression();
|
||||||
void slotRemoveSuppression();
|
void slotRemoveSuppression();
|
||||||
void slotSuppressionsRemoved(const QStringList &files);
|
void slotSuppressionsRemoved(const QStringList &files);
|
||||||
void slotSuppressionsAdded(const QStringList &files);
|
void slotSuppressionsAdded(const QStringList &files);
|
||||||
void slotSuppressionSelectionChanged();
|
void slotSuppressionSelectionChanged();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void updateUi();
|
void updateUi();
|
||||||
|
|
||||||
private:
|
|
||||||
ValgrindBaseSettings *m_settings;
|
ValgrindBaseSettings *m_settings;
|
||||||
Ui::ValgrindConfigWidget *m_ui;
|
Ui::ValgrindConfigWidget *m_ui;
|
||||||
QStandardItemModel *m_model;
|
QStandardItemModel *m_model;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public:
|
|||||||
QVector<QPair<qint64,qint64> > errorcounts;
|
QVector<QPair<qint64,qint64> > errorcounts;
|
||||||
QVector<QPair<QString,qint64> > suppcounts;
|
QVector<QPair<QString,qint64> > suppcounts;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public:
|
||||||
void error(const Valgrind::XmlProtocol::Error &err)
|
void error(const Valgrind::XmlProtocol::Error &err)
|
||||||
{
|
{
|
||||||
errors.append(err);
|
errors.append(err);
|
||||||
@@ -108,7 +108,6 @@ public:
|
|||||||
this, &RunnerDumper::processErrorReceived);
|
this, &RunnerDumper::processErrorReceived);
|
||||||
}
|
}
|
||||||
|
|
||||||
public slots:
|
|
||||||
void error(const Valgrind::XmlProtocol::Error &e)
|
void error(const Valgrind::XmlProtocol::Error &e)
|
||||||
{
|
{
|
||||||
qDebug() << "error received";
|
qDebug() << "error received";
|
||||||
|
|||||||
@@ -67,16 +67,14 @@ public:
|
|||||||
|
|
||||||
ValgrindProcess *valgrindProcess() const;
|
ValgrindProcess *valgrindProcess() const;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual QString tool() const = 0;
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void processOutputReceived(const QString &, Utils::OutputFormat);
|
void processOutputReceived(const QString &, Utils::OutputFormat);
|
||||||
void processErrorReceived(const QString &, QProcess::ProcessError);
|
void processErrorReceived(const QString &, QProcess::ProcessError);
|
||||||
void started();
|
void started();
|
||||||
void finished();
|
void finished();
|
||||||
|
|
||||||
protected slots:
|
protected:
|
||||||
|
virtual QString tool() const = 0;
|
||||||
virtual void processError(QProcess::ProcessError);
|
virtual void processError(QProcess::ProcessError);
|
||||||
virtual void processFinished(int, QProcess::ExitStatus);
|
virtual void processFinished(int, QProcess::ExitStatus);
|
||||||
virtual void localHostAddressRetrieved(const QHostAddress &localHostAddress);
|
virtual void localHostAddressRetrieved(const QHostAddress &localHostAddress);
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ public:
|
|||||||
QString valgrindExecutable() const;
|
QString valgrindExecutable() const;
|
||||||
SelfModifyingCodeDetection selfModifyingCodeDetection() const;
|
SelfModifyingCodeDetection selfModifyingCodeDetection() const;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setValgrindExecutable(const QString &);
|
void setValgrindExecutable(const QString &);
|
||||||
void setSelfModifyingCodeDetection(int);
|
void setSelfModifyingCodeDetection(int);
|
||||||
|
|
||||||
@@ -102,7 +101,6 @@ public:
|
|||||||
virtual void addSuppressionFiles(const QStringList &) = 0;
|
virtual void addSuppressionFiles(const QStringList &) = 0;
|
||||||
virtual void removeSuppressionFiles(const QStringList &) = 0;
|
virtual void removeSuppressionFiles(const QStringList &) = 0;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setNumCallers(int);
|
void setNumCallers(int);
|
||||||
void setLeakCheckOnFinish(int);
|
void setLeakCheckOnFinish(int);
|
||||||
void setShowReachable(bool);
|
void setShowReachable(bool);
|
||||||
@@ -144,7 +142,6 @@ public:
|
|||||||
/// \return Minimum cost ratio, range [0.0..100.0]
|
/// \return Minimum cost ratio, range [0.0..100.0]
|
||||||
double visualisationMinimumInclusiveCostRatio() const { return m_visualisationMinimumInclusiveCostRatio; }
|
double visualisationMinimumInclusiveCostRatio() const { return m_visualisationMinimumInclusiveCostRatio; }
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setEnableCacheSim(bool enable);
|
void setEnableCacheSim(bool enable);
|
||||||
void setEnableBranchSim(bool enable);
|
void setEnableBranchSim(bool enable);
|
||||||
void setCollectSystime(bool collect);
|
void setCollectSystime(bool collect);
|
||||||
@@ -226,7 +223,6 @@ public:
|
|||||||
bool detectCycles() const;
|
bool detectCycles() const;
|
||||||
bool shortenTemplates() const;
|
bool shortenTemplates() const;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setCostFormat(Valgrind::Internal::CostDelegate::CostFormat format);
|
void setCostFormat(Valgrind::Internal::CostDelegate::CostFormat format);
|
||||||
void setDetectCycles(bool on);
|
void setDetectCycles(bool on);
|
||||||
void setShortenTemplates(bool on);
|
void setShortenTemplates(bool on);
|
||||||
|
|||||||
@@ -58,11 +58,9 @@ public:
|
|||||||
~Parser();
|
~Parser();
|
||||||
|
|
||||||
QString errorString() const;
|
QString errorString() const;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void parse(QIODevice *stream);
|
void parse(QIODevice *stream);
|
||||||
|
|
||||||
Q_SIGNALS:
|
signals:
|
||||||
void status(const Valgrind::XmlProtocol::Status &status);
|
void status(const Valgrind::XmlProtocol::Status &status);
|
||||||
void error(const Valgrind::XmlProtocol::Error &error);
|
void error(const Valgrind::XmlProtocol::Error &error);
|
||||||
void internalError(const QString &errorString);
|
void internalError(const QString &errorString);
|
||||||
|
|||||||
@@ -67,8 +67,6 @@ public:
|
|||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void setError(const Valgrind::XmlProtocol::Error &error);
|
void setError(const Valgrind::XmlProtocol::Error &error);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -56,14 +56,13 @@ public:
|
|||||||
bool waitForFinished();
|
bool waitForFinished();
|
||||||
bool isRunning() const;
|
bool isRunning() const;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
///@warning will move @p stream to a different thread and take ownership of it
|
///@warning will move @p stream to a different thread and take ownership of it
|
||||||
void parse(QIODevice *stream);
|
void parse(QIODevice *stream);
|
||||||
|
|
||||||
private Q_SLOTS:
|
private:
|
||||||
void slotInternalError(const QString &errorString);
|
void slotInternalError(const QString &errorString);
|
||||||
|
|
||||||
Q_SIGNALS:
|
signals:
|
||||||
void status(const Valgrind::XmlProtocol::Status &status);
|
void status(const Valgrind::XmlProtocol::Status &status);
|
||||||
void error(const Valgrind::XmlProtocol::Error &error);
|
void error(const Valgrind::XmlProtocol::Error &error);
|
||||||
void internalError(const QString &errorString);
|
void internalError(const QString &errorString);
|
||||||
|
|||||||
Reference in New Issue
Block a user