changing profile-logic for network panel
See original GitHub issueAfter working on #1110, I’ve realized we might have to create a new profile logic for the network panel.
Right now we use the tracing markers as our data source: https://github.com/devtools-html/perf.html/blob/65796f2124f7e67bfbab28438126682edf78b51c/src/profile-logic/profile-data.js#L1309
But this seems not a 100% fit for our needs as we either get a marker with startTime
and endTime
, so we can display the duration (this is good) or we just get the startTime
and no duration (not so good). One possibility would be, we could display the startTime
as a vertical stroke, but I am not sure if this would improve the quality of the data visualization.
Another idea that @gregtatum did bring up today was to use http://www.softwareishard.com/blog/har-12-spec/#timings (which I also discussed with @mstange last week). This is the data we are using for the network panel in devTools. That would be definitely be interesting for the network sidebar.
What are your thoughts on this @gregtatum @mstange @past @julienw?
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (14 by maintainers)
Top GitHub Comments
Also, this is a useful profile with network markers: https://perfht.ml/2KZ0vtS
Useful snippets for the console:
Right now we construct
MarkerTiming
to display the markers. The format was chosen to minimize GC when we slice and dice up the profiles to render the markers, and be fast to iterate over while the markers are drawn via 2d canvas. The new network panel is going to use the DOM, so it might not need the same shape of data.To think out loud in code, maybe the network panel could use something like this.