-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DevTools Performance Timeline revisited (#1972)
The DevTools Performance Timeline is an implementation of a Trace viewer. On Chrome, the TracingController has several TracingAgents, each of which outputs events in the Trace format. These agents are mainly the Blink Trace agent, and a v8 js sampling profiler, plus on Android, a java trace agent. (https://github.com/youtube/cobalt/blob/f0d959a6920a8c481811c15ef4ebdbe8c6d0cc66/base/trace_event/tracing_agent.h#L21). This CL should make it easier to add an Android tracing agent in the future. Previously, the Cobalt implementation did not have a TracingController, and had a single agent which was plugged directly into the v8 profiler, so we were blind to the rest of the callstack. This CL introduces a TracingController with two agents, a TraceEventsAgent, analogous to the Chrome Blink agent, which captures the bulk of the data, and also a V8TracingAgent which is still plugged into V8. I think the V8 agent still needs more work so even though its implemented here, its currently disabled. I also think we can lean into CDP (chrome devtools protocol) to get rid of our custom CVal implmentation, which should get our Performance testing closer to Chrome. b/198688218 b/123369438
- Loading branch information
Showing
9 changed files
with
482 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.