Open Bug 1463315 Opened 6 years ago Updated 2 years ago

Should use nsIProfiler.getProfileDataAsArrayBuffer instead of getProfileDataAsync

Categories

(DevTools :: Performance Tools (Profiler/Timeline), enhancement, P2)

enhancement

Tracking

(firefox62 affected)

Tracking Status
firefox62 --- affected

People

(Reporter: mstange, Unassigned)

Details

https://searchfox.org/mozilla-central/rev/2aa42f2cab4a110edf21dd7281ac23a1ea8901f9/devtools/server/actors/perf.js#95 Getting the profile as an array buffer has better performance because we won't materialize the JS objects for the JSON contents until the profile has arrived inside perf.html.
Is getProfileDataAsArrayBuffer async as well ?
Yes it is. We should probably take a pass through nsIProfiler at some point and rename the methods to be consistent. When I added getProfileDataAsArrayBuffer, the idea was that "async" shouldn't need to be mentioned because async behavior should be assumed by default.
Product: Firefox → DevTools
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.