summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@digia.com>2013-08-01 11:27:47 +0200
committerChristiaan Janssen <christiaan.janssen@digia.com>2013-08-06 15:59:06 +0300
commit6b587896af92f02732c58f5e8e18031e125c5a1a (patch)
tree47ab92337b05f443ca9a8cf4c4583f78d5d4ae05
parent71375b3c35b82bcaec6823eb6b2029a97bcb7f8c (diff)
downloadqt-creator-6b587896af92f02732c58f5e8e18031e125c5a1a.tar.gz
QmlProfiler: removed v8 event on empty data
Task-Id: QtCREATORBUG-8994 Change-Id: I548f666ec7bcec0e8c375ecc57541a225b82e8d4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--plugins/qmlprofiler/qv8profilerdatamodel.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/qmlprofiler/qv8profilerdatamodel.cpp b/plugins/qmlprofiler/qv8profilerdatamodel.cpp
index ab4c7b8fa8..406d010e80 100644
--- a/plugins/qmlprofiler/qv8profilerdatamodel.cpp
+++ b/plugins/qmlprofiler/qv8profilerdatamodel.cpp
@@ -274,12 +274,6 @@ void QV8ProfilerDataModel::QV8ProfilerDataModelPrivate::collectV8Statistics()
} else {
// On empty data, still add a fake root event
clearV8RootEvent();
- v8RootEvent.totalPercent = 100;
- QString rootEventHash = getHashStringForV8Event(
- tr("<program>"),
- tr("Main Program"));
- v8EventHash[rootEventHash] = new QV8EventData;
- *v8EventHash[rootEventHash] = v8RootEvent;
}
}