Repository navigation
Add functionality to profiler-edit to merge two profiles, one with samples and one with markers - #5448
Add functionality to profiler-edit to merge two profiles, one with samples and one with markers#5448mstange wants to merge 1 commit into
Conversation
09d0f40 to
c967c63
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5448 +/- ##
==========================================
- Coverage 84.78% 84.78% -0.01%
==========================================
Files 358 359 +1
Lines 38946 39063 +117
Branches 10917 11066 +149
==========================================
+ Hits 33022 33120 +98
- Misses 5488 5507 +19
Partials 436 436 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Is this specific to android? I could be tempted to merge a samply profile with a resource usage profile. |
|
The part that's specific to Android / Linux is the use of Also, the markers from the "samples" profile are discarded. You are probably interested in keeping markers from both profiles, which will be more complicated because you'll also have to merge the schemas. |
If we added more useful markers to samply profiles, yes. Currently all the markers I see in these profiles are mmap markers that don't tell me much. |
c967c63 to
b0d1a1b
Compare
b0d1a1b to
c432b01
Compare
a1a2f14 to
a0ca052
Compare
a0ca052 to
577a1a7
Compare
651ba1a to
06de2e3
Compare
…o profiler-edit. This replaces the merge-android-profiles script. It combines the samples of a system-wide simpleperf profile with the markers of a Gecko profile from the same run, for Android startup profiling. The markers are copied into the threads with the same pid and tid, and the profiles are aligned by their monotonic clock start times. The markers of Gecko's "X (JVM)" threads go into the thread of "X".
06de2e3 to
9db4c81
Compare
|
I've ported the script functionality to the profiler-edit script. I'd like to use this in CI to create better profiles for the newssite-applink-startup test. |
Main | Deploy preview
I've been using this script to make profiles of Firefox startup on Android, with sample data from simpleperf and marker data from the Gecko profiler.
I was using the following
org.mozilla.fenix-geckoview-config.yaml:Example profiles to merge: https://share.firefox.dev/4ssKZZq and https://share.firefox.dev/48gWwSb
You can run it with
yarn build-node-tools && node ./node-tools-dist/profiler-edit.js -i 'https://storage.googleapis.com/profile-store/ycbv8644eb0e11n62hgh04yya7xgamhq2qgd94r' -o ~/Downloads/merged.json.gz --merge-markers-from 'https://storage.googleapis.com/profile-store/ag9r7sm5h7zgxphw8werwqs22gdf7kt50q0dqf0' --only-keep-processes-with-name-prefix org.mozilla.fenixThis gives https://share.firefox.dev/4z2OoQx .