Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions front_end/entrypoints/main/MainImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,12 @@ export class MainImpl {
// would request and evaluate the Timeline panel dep tree, slowing down the UI's load.
const Timeline = await import('../../panels/timeline/timeline.js');
Timeline.TimelinePanel.LoadTimelineHandler.instance().handleQueryParam(value);
} else {
const panel = Root.Runtime.Runtime.queryParam('panel');
if (panel === 'timeline') {
// [RN] If panel is specified, we need Timeline to be ready and be subscribed to the events that will be emitted.
await import('../../panels/timeline/timeline.js');
}
}

// Initialize ARIAUtils.alert Element
Expand Down
3 changes: 1 addition & 2 deletions front_end/panels/timeline/TimelineController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,11 @@ export class TimelineController implements Trace.TracingManager.TracingManagerCl
}

async rnPrepareForTraceCapturedInBackground(): Promise<void> {
await LiveMetrics.LiveMetrics.instance().disable();

if (this.tracingManager) {
this.tracingManager.rnPrepareForTraceCapturedInBackground(this);
}

await LiveMetrics.LiveMetrics.instance().disable();
this.client.loadingStarted();
await this.allSourcesFinished();
await LiveMetrics.LiveMetrics.instance().enable();
Expand Down
Loading