QmlProfiler: Use a temporary file to store the master event list

As we only ever iterate the master event list in a linear fashion, we
can use a temporary file to store it. This should allow for larger
traces to be handled without running out of memory.

Change-Id: I0d2aea6f998458fe5f426f6fef0f6937e915ae68
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-04-29 18:38:54 +02:00
parent 914e1e1fe1
commit 0f513bc91e
4 changed files with 31 additions and 32 deletions

View File

@@ -343,7 +343,7 @@ void QmlProfilerModelManager::load(const QString &filename)
reader->eventTypes(), reader->events());
d->notesModel->setNotes(reader->notes());
setRecordedFeatures(reader->loadedFeatures());
d->traceTime->increaseEndTime(d->model->lastTimeMark());
d->traceTime->increaseEndTime(reader->events().last().timestamp());
delete reader;
acquiringDone();
}, Qt::QueuedConnection);