forked from qt-creator/qt-creator
QmlProfiler: Remove dead code.
Change-Id: Ib44094740e93f1389c3caa07371866714a375f04 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -341,8 +341,6 @@ QmlProfilerEventsMainView::QmlProfilerEventsMainView(QWidget *parent,
|
|||||||
|
|
||||||
d->modelProxy = modelProxy;
|
d->modelProxy = modelProxy;
|
||||||
connect(d->modelProxy,SIGNAL(dataAvailable()), this, SLOT(buildModel()));
|
connect(d->modelProxy,SIGNAL(dataAvailable()), this, SLOT(buildModel()));
|
||||||
// connect(d->modelProxy,SIGNAL(stateChanged()),
|
|
||||||
// this,SLOT(profilerDataModelStateChanged()));
|
|
||||||
d->m_firstNumericColumn = 0;
|
d->m_firstNumericColumn = 0;
|
||||||
d->m_preventSelectBounce = false;
|
d->m_preventSelectBounce = false;
|
||||||
d->m_showExtendedStatistics = false;
|
d->m_showExtendedStatistics = false;
|
||||||
@@ -366,7 +364,6 @@ QmlProfilerEventsMainView::QmlProfilerEventsMainView(QWidget *parent,
|
|||||||
QmlProfilerEventsMainView::~QmlProfilerEventsMainView()
|
QmlProfilerEventsMainView::~QmlProfilerEventsMainView()
|
||||||
{
|
{
|
||||||
clear();
|
clear();
|
||||||
//delete d->modelProxy;
|
|
||||||
delete d->m_model;
|
delete d->m_model;
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
@@ -808,7 +805,6 @@ void QmlProfilerEventRelativesView::rebuildTree(QmlProfilerEventRelativesModelPr
|
|||||||
|
|
||||||
QStandardItem *topLevelItem = treeModel()->invisibleRootItem();
|
QStandardItem *topLevelItem = treeModel()->invisibleRootItem();
|
||||||
|
|
||||||
//foreach (const QmlProfilerEventParentsModelProxy::QmlEventParentData &event, eventMap.values()) {
|
|
||||||
foreach (const QString &key, eventMap.keys()) {
|
foreach (const QString &key, eventMap.keys()) {
|
||||||
const QmlProfilerEventRelativesModelProxy::QmlEventRelativesData &event = eventMap[key];
|
const QmlProfilerEventRelativesModelProxy::QmlEventRelativesData &event = eventMap[key];
|
||||||
QList<QStandardItem *> newRow;
|
QList<QStandardItem *> newRow;
|
||||||
@@ -822,11 +818,6 @@ void QmlProfilerEventRelativesView::rebuildTree(QmlProfilerEventRelativesModelPr
|
|||||||
newRow << new EventsViewItem(QString::number(event.calls));
|
newRow << new EventsViewItem(QString::number(event.calls));
|
||||||
newRow << new EventsViewItem(event.details);
|
newRow << new EventsViewItem(event.details);
|
||||||
|
|
||||||
// newRow << new EventsViewItem(event->reference->displayName);
|
|
||||||
// newRow << new EventsViewItem(QmlProfilerEventsMainView::nameForType(event->reference->eventType));
|
|
||||||
// newRow << new EventsViewItem(QmlProfilerBaseModel::formatTime(event->duration));
|
|
||||||
// newRow << new EventsViewItem(QString::number(event->calls));
|
|
||||||
// newRow << new EventsViewItem(event->reference->details);
|
|
||||||
newRow.at(0)->setData(QVariant(key), EventHashStrRole);
|
newRow.at(0)->setData(QVariant(key), EventHashStrRole);
|
||||||
newRow.at(2)->setData(QVariant(event.duration));
|
newRow.at(2)->setData(QVariant(event.duration));
|
||||||
newRow.at(3)->setData(QVariant(event.calls));
|
newRow.at(3)->setData(QVariant(event.calls));
|
||||||
|
@@ -118,7 +118,6 @@ public:
|
|||||||
static QString nameForType(int typeNumber);
|
static QString nameForType(int typeNumber);
|
||||||
|
|
||||||
void getStatisticsInRange(qint64 rangeStart, qint64 rangeEnd);
|
void getStatisticsInRange(qint64 rangeStart, qint64 rangeEnd);
|
||||||
// int selectedEventId() const;
|
|
||||||
QString selectedEventHash() const;
|
QString selectedEventHash() const;
|
||||||
|
|
||||||
void setShowExtendedStatistics(bool);
|
void setShowExtendedStatistics(bool);
|
||||||
@@ -170,7 +169,6 @@ private:
|
|||||||
void rebuildTree(QmlProfilerEventParentsModelProxy::QmlEventRelativesMap eventMap);
|
void rebuildTree(QmlProfilerEventParentsModelProxy::QmlEventRelativesMap eventMap);
|
||||||
void updateHeader();
|
void updateHeader();
|
||||||
QStandardItemModel *treeModel();
|
QStandardItemModel *treeModel();
|
||||||
// QmlProfilerModelManager *m_profilerModelManager;
|
|
||||||
|
|
||||||
class QmlProfilerEventParentsViewPrivate;
|
class QmlProfilerEventParentsViewPrivate;
|
||||||
QmlProfilerEventParentsViewPrivate *d;
|
QmlProfilerEventParentsViewPrivate *d;
|
||||||
|
@@ -161,7 +161,6 @@ QmlProfilerModelManager::QmlProfilerModelManager(Utils::FileInProjectFinder *fin
|
|||||||
d->totalWeight = 0;
|
d->totalWeight = 0;
|
||||||
d->model = new QmlProfilerDataModel(finder, this);
|
d->model = new QmlProfilerDataModel(finder, this);
|
||||||
d->v8Model = new QV8ProfilerDataModel(finder, this);
|
d->v8Model = new QV8ProfilerDataModel(finder, this);
|
||||||
// d->model = new QmlProfilerSimpleModel(this);
|
|
||||||
d->dataState = new QmlProfilerDataState(this, this);
|
d->dataState = new QmlProfilerDataState(this, this);
|
||||||
d->traceTime = new QmlProfilerTraceTime(this);
|
d->traceTime = new QmlProfilerTraceTime(this);
|
||||||
}
|
}
|
||||||
|
@@ -225,7 +225,6 @@ const QVariantList PaintEventsModelProxy::getEventDetails(int index) const
|
|||||||
{
|
{
|
||||||
Q_D(const PaintEventsModelProxy);
|
Q_D(const PaintEventsModelProxy);
|
||||||
QVariantList result;
|
QVariantList result;
|
||||||
// int eventId = getEventId(index);
|
|
||||||
|
|
||||||
static const char trContext[] = "RangeDetails";
|
static const char trContext[] = "RangeDetails";
|
||||||
{
|
{
|
||||||
|
@@ -50,8 +50,6 @@ namespace Internal {
|
|||||||
|
|
||||||
class PaintEventsModelProxy : public SingleCategoryTimelineModel
|
class PaintEventsModelProxy : public SingleCategoryTimelineModel
|
||||||
{
|
{
|
||||||
// Q_PROPERTY(bool empty READ isEmpty NOTIFY emptyChanged)
|
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@@ -242,16 +242,6 @@ void QmlProfilerStateWidget::updateDisplay()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Everything empty (base state), commented out now but needed in the future.
|
|
||||||
// if (d->emptyList && d->loadingDone) {
|
|
||||||
// setVisible(true);
|
|
||||||
// d->progressBar->setVisible(false);
|
|
||||||
// d->text->setText(tr("Profiler ready"));
|
|
||||||
// resize(200,70);
|
|
||||||
// parentResized();
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// There is a trace on view, hide this dialog
|
// There is a trace on view, hide this dialog
|
||||||
d->progressBar->setVisible(false);
|
d->progressBar->setVisible(false);
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
|
@@ -35,14 +35,10 @@
|
|||||||
#include "abstracttimelinemodel.h"
|
#include "abstracttimelinemodel.h"
|
||||||
#include <qmldebug/qmlprofilereventtypes.h>
|
#include <qmldebug/qmlprofilereventtypes.h>
|
||||||
#include <qmldebug/qmlprofilereventlocation.h>
|
#include <qmldebug/qmlprofilereventlocation.h>
|
||||||
//#include <QHash>
|
|
||||||
//#include <QVector>
|
|
||||||
#include <QVariantList>
|
#include <QVariantList>
|
||||||
//#include <QVariantMap>
|
|
||||||
#include "qmlprofilerdatamodel.h"
|
#include "qmlprofilerdatamodel.h"
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
|
|
||||||
|
|
||||||
namespace QmlProfiler {
|
namespace QmlProfiler {
|
||||||
class QmlProfilerModelManager;
|
class QmlProfilerModelManager;
|
||||||
|
|
||||||
@@ -50,8 +46,6 @@ namespace Internal {
|
|||||||
|
|
||||||
class BasicTimelineModel : public AbstractTimelineModel
|
class BasicTimelineModel : public AbstractTimelineModel
|
||||||
{
|
{
|
||||||
// Q_PROPERTY(bool empty READ isEmpty NOTIFY emptyChanged)
|
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
struct QmlRangeEventData
|
struct QmlRangeEventData
|
||||||
|
@@ -189,9 +189,6 @@ void QmlProfilerFileReader::loadEventData(QXmlStreamReader &stream)
|
|||||||
QTC_ASSERT(stream.name() == _("eventData"), return);
|
QTC_ASSERT(stream.name() == _("eventData"), return);
|
||||||
|
|
||||||
QXmlStreamAttributes attributes = stream.attributes();
|
QXmlStreamAttributes attributes = stream.attributes();
|
||||||
if (attributes.hasAttribute(_("totalTime"))) {
|
|
||||||
// not used any more
|
|
||||||
}
|
|
||||||
|
|
||||||
int eventIndex = -1;
|
int eventIndex = -1;
|
||||||
QmlEvent event = {
|
QmlEvent event = {
|
||||||
|
@@ -174,8 +174,6 @@ bool TimelineModelAggregator::expanded(int modelIndex, int category) const
|
|||||||
|
|
||||||
void TimelineModelAggregator::setExpanded(int modelIndex, int category, bool expanded)
|
void TimelineModelAggregator::setExpanded(int modelIndex, int category, bool expanded)
|
||||||
{
|
{
|
||||||
// int modelIndex = modelIndexForCategory(category);
|
|
||||||
// category = correctedCategoryIndexForModel(modelIndex, categoryIndex);
|
|
||||||
d->modelList[modelIndex]->setExpanded(category, expanded);
|
d->modelList[modelIndex]->setExpanded(category, expanded);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,8 +194,6 @@ int TimelineModelAggregator::rowCount(int modelIndex) const
|
|||||||
|
|
||||||
const QString TimelineModelAggregator::categoryLabel(int modelIndex, int categoryIndex) const
|
const QString TimelineModelAggregator::categoryLabel(int modelIndex, int categoryIndex) const
|
||||||
{
|
{
|
||||||
// int modelIndex = modelIndexForCategory(categoryIndex);
|
|
||||||
// categoryIndex = correctedCategoryIndexForModel(modelIndex, categoryIndex);
|
|
||||||
return d->modelList[modelIndex]->categoryLabel(categoryIndex);
|
return d->modelList[modelIndex]->categoryLabel(categoryIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,8 +295,6 @@ float TimelineModelAggregator::getHeight(int modelIndex, int index) const
|
|||||||
|
|
||||||
const QVariantList TimelineModelAggregator::getLabelsForCategory(int modelIndex, int category) const
|
const QVariantList TimelineModelAggregator::getLabelsForCategory(int modelIndex, int category) const
|
||||||
{
|
{
|
||||||
// int modelIndex = modelIndexForCategory(category);
|
|
||||||
// category = correctedCategoryIndexForModel(modelIndex, category);
|
|
||||||
return d->modelList[modelIndex]->getLabelsForCategory(category);
|
return d->modelList[modelIndex]->getLabelsForCategory(category);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user