Closed Bug 1586939 Opened 5 years ago Closed 4 years ago

Make Gecko Profiler controls also control Base Profiler

Categories

(Core :: Gecko Profiler, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

Currently the Base Profiler is controlled separately from the Gecko Profiler: Separate command-line env-vars (MOZ_BASE_PROFILER_...), and no popup interaction.

Gecko Profiler controls should now work on the Base Profiler as well:

  • MOZ_PROFILER_... should work on the Base Profiler; MOZ_BASE_PROFILER_... to be removed.
  • When the Gecko Profiler is started through the popup, new processes should automatically run the Base Profiler on startup.

The goal is for most users to only know about the profiler, and control it; Base and Gecko Profilers should be implementation details that work together behind the scene to provide an integrated profile across more of Firefox than before.

Note to self: I should take this opportunity to add tests that verify that base profiles don't get lost (like in bug 1592887).

This env-vars were not processed because of some needed special processing, and
they were not critical.
But now we want them to be correctly read, to match the Gecko Profiler features.

Depends on D54447

Now both profilers are controlled by the same environment variables, e.g.
"MOZ_PROFILER_STARTUP" to run both profilers at startup.

The only remaining Base Profiler-specific commands are:

  • MOZ_BASE_PROFILER_HELP, because the Base Profiler doesn't have the same
    capabilities as Gecko, so it may display different available features.
  • MOZ_BASE_PROFILER_LOGGING, because the Base Profiler doesn't have access to
    MOZ_LOG (both the env-var and the C++ macros).

Depends on D54448

I should wait until bug 1599015 is resolved before landing this one.

Depends on: 1599015

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:gerald, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(gsquelart)

Next week, after the new release.

Flags: needinfo?(gsquelart)
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b5aac83f7f4f
Re-enable MOZ_BASE_PROFILER_STARTUP_DURATION and _INTERVAL - r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/922243345807
Remove "_BASE" from most Base Profiler env-vars - r=gregtatum
Backout by shindli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7541d616ff87
Backed out 2 changesets for causing perma bc failures in automation.py CLOSED TREE

Note to self: Wait for bug 1607574, port it to base profiler here before combining the env-vars.

Depends on: 1607574
Flags: needinfo?(gsquelart)
Depends on: 1619362

Hey Gerald, as it looks like all the dependencies are fixed. I wonder if you can update the patch and land again. Or is there something else which blocks us right now?

Flags: needinfo?(gsquelart)

I've just finished my big project (bug 1612356), so I can come back to this here soon. (Keeping the NI as reminder.)

On it.

Flags: needinfo?(gsquelart)
Attachment #9111134 - Attachment is obsolete: true
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6e1337767992
Skip LoadLibraryEx if we're likely to hit the crash in nvd3d9wrap{,x}.dll - r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/1f66a6a498e5
Remove "_BASE" from most Base Profiler env-vars - r=gregtatum

Discussed with sheriff, this bug was not the problem. They're looking for the real culprit and will reland my patches. 😌

Flags: needinfo?(gsquelart)
Pushed by ncsoregi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9a9b36b0ba39
Skip LoadLibraryEx if we're likely to hit the crash in nvd3d9wrap{,x}.dll - r=gregtatum a=reland CLOSED TREE
https://hg.mozilla.org/integration/autoland/rev/8f39a30ad224
Remove "_BASE" from most Base Profiler env-vars - r=gregtatum a=reland CLOSED TREE
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: