forked from qt-creator/qt-creator
QmlProfiler: removed v8 event on empty data
Task-Id: QtCREATORBUG-8994 Change-Id: I548f666ec7bcec0e8c375ecc57541a225b82e8d4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -274,12 +274,6 @@ void QV8ProfilerDataModel::QV8ProfilerDataModelPrivate::collectV8Statistics()
|
|||||||
} else {
|
} else {
|
||||||
// On empty data, still add a fake root event
|
// On empty data, still add a fake root event
|
||||||
clearV8RootEvent();
|
clearV8RootEvent();
|
||||||
v8RootEvent.totalPercent = 100;
|
|
||||||
QString rootEventHash = getHashStringForV8Event(
|
|
||||||
tr("<program>"),
|
|
||||||
tr("Main Program"));
|
|
||||||
v8EventHash[rootEventHash] = new QV8EventData;
|
|
||||||
*v8EventHash[rootEventHash] = v8RootEvent;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user