Extend PerfStats to record arbitrary durations
Categories
(Core :: Performance, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: acreskey, Assigned: acreskey)
Details
Attachments
(2 files)
The current PerfStats API provide methods to Start/Stop recording for metric as well as an RAII object that records while in scope.
This bug is to extend the PerfStats API to also allow arbitrary durations to be recorded for new metrics.
As an example (included in the patch), this is useful for capturing the amount of time elapsed on http requests, both from the network and from the cache.
Assignee | ||
Comment 1•4 years ago
|
||
Add PerfStats::RecordMeasurement( metric, duration ) api so we can record timings for async metrics where details are not always known until completion.
Also added recording of Http channel completion time (network and cache)
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Record from asyncOpen to channel completion in HttpChannelChild, for both network and cache sources.
This will allow us to capture cross-platform networking timings in pageload and other scenarios.
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/85b59218c1f0 Part 1: Extend PerfStats to record arbitrary durations r=bas,necko-reviewers,valentin https://hg.mozilla.org/integration/autoland/rev/03e3558727b6 Part 2: Add Http Channel completon PerfStats r=necko-reviewers,dragana
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/85b59218c1f0
https://hg.mozilla.org/mozilla-central/rev/03e3558727b6
Description
•