firefox-devtools / profiler

Firefox Profiler — Web app for Firefox performance analysis
https://profiler.firefox.com
Mozilla Public License 2.0
1.22k stars 399 forks source link

Allow to compare two profiles for their memory usage #3061

Open whimboo opened 4 years ago

whimboo commented 4 years ago

While the profiler allows to compare two profiles for code execution (stack frames), it's not possible to actually compare the memory usage. I have to do such a comparison for https://bugzilla.mozilla.org/show_bug.cgi?id=1669169#c16.

Here two profiles that I want to compare: https://share.firefox.dev/32SgQrR and https://share.firefox.dev/2H5gx5g

┆Issue is synchronized with this Jira Task

gregtatum commented 4 years ago

Given the data, where the numbers represents bytes:

Profile A:  5 10 11 12 12  5 4 4
Profile B:  4  8 11 15 10  6 4 1
Diff     :  1  2  0 -3 -2 -1 0 3

We'll need two tracks in the UI.

Track A: Charts Profile A and Profile B Track B: Charts the Diff