mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +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
|
#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;
|
||||||
|
Loading…
Reference in New Issue
Block a user