Currently the only way to profile app on startup is to enable profiling for all of b2g. This means profiling more processes and threads that we need. We need a way to start profiling certain processes/threads on startup without profiling everything. For example we want to profile b2g process + Camera app's main+camera threads with nothing else. Either 1) We need to support starting b2g app from the command like. For fennec we do something like 'adb shell start fennec <url> -es MOZ_PROFILER_STARTUP=true' or 2) We need a way for a user to provide what he wants to profile ahead of time and for each process check if its meet the conditions before profiling. This means being able to recognize from XRE_main that the process is the Camera process. Maybe put the conditions in a file that are checked if MOZ_PROFILER_STARTUP is set.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.