Skip to content

Conversation

@mstange
Copy link
Contributor

@mstange mstange commented May 6, 2025

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:

env:
  PERF_SPEW_DIR: /storage/emulated/0/Android/data/org.mozilla.fenix/files
  IONPERF: func
  JIT_OPTION_emitInterpreterEntryTrampoline: true
  JIT_OPTION_enableICFramePointers: true
  JIT_OPTION_onlyInlineSelfHosted: true

  MOZ_PROFILER_STARTUP: 1
  MOZ_PROFILER_STARTUP_NO_BASE: 1 # bug 1955125
  MOZ_PROFILER_STARTUP_INTERVAL: 500
  MOZ_PROFILER_STARTUP_FEATURES: nostacksampling,nomarkerstacks,screenshots,ipcmessages,java,cpu,markersallthreads
  MOZ_PROFILER_STARTUP_FILTERS: GeckoMain,Compositor,Renderer,IPDL Background,*

@codecov
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

❌ Patch coverage is 0% with 111 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.34%. Comparing base (1a808fe) to head (577a1a7).
⚠️ Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
src/merge-android-profiles/index.ts 0.00% 107 Missing ⚠️
src/merge-android-profiles/webpack.config.js 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5448      +/-   ##
==========================================
- Coverage   85.64%   85.34%   -0.31%     
==========================================
  Files         313      315       +2     
  Lines       31013    31124     +111     
  Branches     8535     8569      +34     
==========================================
  Hits        26562    26562              
- Misses       4021     4132     +111     
  Partials      430      430              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fqueze
Copy link
Contributor

fqueze commented Jul 25, 2025

Is this specific to android? I could be tempted to merge a samply profile with a resource usage profile.

@mstange
Copy link
Contributor Author

mstange commented Jul 25, 2025

The part that's specific to Android / Linux is the use of startTimeAsClockMonotonicNanosecondsSinceBoot to align the timestamps in the two profiles.

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.

@fqueze
Copy link
Contributor

fqueze commented Jul 25, 2025

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.

@mstange mstange force-pushed the push-vzyqvzrmrvqx branch from c967c63 to b0d1a1b Compare August 15, 2025 13:05
@mstange mstange force-pushed the push-vzyqvzrmrvqx branch from b0d1a1b to c432b01 Compare August 25, 2025 18:28
@mstange mstange force-pushed the push-vzyqvzrmrvqx branch 2 times, most recently from a1a2f14 to a0ca052 Compare October 23, 2025 18:42
@mstange mstange force-pushed the push-vzyqvzrmrvqx branch from a0ca052 to 577a1a7 Compare January 6, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants