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.45%. Comparing base (d396f27) to head (a0ca052).

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.76%   85.45%   -0.31%     
==========================================
  Files         311      313       +2     
  Lines       30747    30858     +111     
  Branches     8455     8489      +34     
==========================================
  Hits        26370    26370              
- Misses       3953     4064     +111     
  Partials      424      424              

☔ 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.

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