forked from qt-creator/qt-creator
Tracing: Move event storage out of trace manager
This is a step toward making the trace manager non-virtual. It should just juggle the storages for types and events, and manage the threads to access them. It doesn't need to know what exactly it stores. Change-Id: I45093c60d8ae921e68aeb09bd48d24d5877ce306 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -102,7 +102,7 @@ void QmlProfilerToolTest::testClearEvents()
|
||||
QCOMPARE(modelManager->numEvents(), 0);
|
||||
const int typeIndex = modelManager->appendEventType(QmlEventType());
|
||||
QCOMPARE(typeIndex, 0);
|
||||
modelManager->addEvent(QmlEvent(0, typeIndex, ""));
|
||||
modelManager->appendEvent(QmlEvent(0, typeIndex, ""));
|
||||
QCOMPARE(modelManager->numEventTypes(), 1);
|
||||
QCOMPARE(modelManager->numEvents(), 1);
|
||||
stateManager->setServerRecording(false);
|
||||
@@ -111,7 +111,7 @@ void QmlProfilerToolTest::testClearEvents()
|
||||
stateManager->setServerRecording(true); // clears previous events, but not types
|
||||
QCOMPARE(modelManager->numEventTypes(), 1);
|
||||
QCOMPARE(modelManager->numEvents(), 0);
|
||||
modelManager->addEvent(QmlEvent(0, typeIndex, ""));
|
||||
modelManager->appendEvent(QmlEvent(0, typeIndex, ""));
|
||||
QCOMPARE(modelManager->numEventTypes(), 1);
|
||||
QCOMPARE(modelManager->numEvents(), 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user