Bug 1898057 - actually record how much energy was used per process type on Apple Silicon, r=chutten.

Differential Revision: https://phabricator.services.mozilla.com/D211760
This commit is contained in:
Florian Quèze 2024-05-27 19:52:15 +00:00
parent 38591094ff
commit 3b1484bec6

View File

@ -414,6 +414,7 @@ void RecordPowerMetrics() {
#ifdef HAS_PROCESS_ENERGY #ifdef HAS_PROCESS_ENERGY
if (newProcessEnergy) { if (newProcessEnergy) {
power::energy_per_process_type.Get(type).Add(newProcessEnergy);
PROFILER_MARKER("Process Energy", OTHER, {}, ProcessEnergyMarker, PROFILER_MARKER("Process Energy", OTHER, {}, ProcessEnergyMarker,
newProcessEnergy, type); newProcessEnergy, type);
previousProcessEnergy += newProcessEnergy; previousProcessEnergy += newProcessEnergy;