mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
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:
parent
38591094ff
commit
3b1484bec6
@ -414,6 +414,7 @@ void RecordPowerMetrics() {
|
||||
|
||||
#ifdef HAS_PROCESS_ENERGY
|
||||
if (newProcessEnergy) {
|
||||
power::energy_per_process_type.Get(type).Add(newProcessEnergy);
|
||||
PROFILER_MARKER("Process Energy", OTHER, {}, ProcessEnergyMarker,
|
||||
newProcessEnergy, type);
|
||||
previousProcessEnergy += newProcessEnergy;
|
||||
|
Loading…
Reference in New Issue
Block a user