diff options
author | Ulf Hermann <[email protected]> | 2014-06-13 16:34:30 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2014-06-17 16:26:06 +0200 |
commit | fea6580c82936cbeec69038f9184f30944e659c8 (patch) | |
tree | e93922d57619b0e01d198c59365ab45d08a91bf3 /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | |
parent | b0d79542b858e0089b42f7b8c810d476a4a6b80e (diff) |
QmlProfiler: get rid of hash strings
Using strings to identify equal events is terribly inefficient. By
keeping a global list of event types we can assign each event a
numerical type index and use that to compare them.
We can also avoid excessive string copying and data duplication by
referring to the global type list where event type information is
needed.
Task-number: QTCREATORBUG-11823
Change-Id: I837bd5d0f5395b0003002ef8dd278fb27679c65d
Reviewed-by: Kai Koehne <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp index 9e4b395e66e..8f38bb884e7 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp @@ -322,7 +322,7 @@ void QmlProfilerModelManager::save(const QString &filename) writer.setTraceTime(traceTime()->startTime(), traceTime()->endTime(), traceTime()->duration()); writer.setV8DataModel(d->v8Model); - writer.setQmlEvents(d->model->getEvents()); + writer.setQmlEvents(d->model->getEventTypes(), d->model->getEvents()); writer.save(&file); } |