Fix tracing of startup events (#59982)
When `retainPriorEvents` is passed as true, the current behavior still limits timeline events to the timestamp after `traceEvents` is called. This can cause startup events to be missing. This fixes it by passing null to `stopTracingAndDownloadTimeline` for the start and end time. Related: #58430
This commit is contained in:
@@ -574,10 +574,8 @@ void main() {
|
||||
}, retainPriorEvents: true);
|
||||
|
||||
expect(log, const <String>[
|
||||
'getVMTimelineMicros',
|
||||
'startTracing',
|
||||
'action',
|
||||
'getVMTimelineMicros',
|
||||
'stopTracing',
|
||||
'download',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user