I have dart test where I do
setUp() async {
vm_service.VmService vms = await vmServiceConnectUri(vmUrl);
vmsStartTime = (await vms.getVMTimelineMicros()).timestamp;
await flutterDriver.startTracing()
}
tearDown() async {
vmsEndTime = (await vms.getVMTimelineMicros()).timestamp;
Timeline timeline = await driver.stopTracingAndDownloadTimeline();
}
Tests run for around 30 seconds each. And for some reason after the tests I have something like
vmsStartTime = 4323069605
vmsEndTime = 4323088753
In timeline first event timestampMicros is
"ts": 4318344424
Also:
"timeOriginMicros": 4318344424,
"timeExtentMicros": 2080190
I use vmsStartTest and vmsEndTest to filter out events related to each tests and with such issues I miss all the events related to the test from the timeline. Please help me to understand why that happens and how to deal with it?