Closed Bug 1794327 Opened 2 years ago Closed 2 years ago

Use RAPL perf events to show power use in the profiler

Categories

(Core :: Gecko Profiler, enhancement, P3)

Unspecified
Linux
enhancement

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: dlrobertson, Assigned: dlrobertson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Use RAPL perf events to provide power usage statistics to the profiler. perf(1) currently allows users to do this with something like the following:

perf stat -e power/energy-cpu/ <command>`

We should be able to implement this in the gecko profiler using perf_event_open(2). In some cases this might require the user to set the kernel.perf_event_paranoid sysctl.

Priority: -- → P3

Poll the RAPL perf events on linux to provide useful power data as a profile
counter.

Assignee: nobody → drobertson
Attachment #9297764 - Attachment description: WIP: Bug 1794327 - Record RAPL perf events as a profile counter. r=florian → Bug 1794327 - Record RAPL perf events as a profile counter. r=florian
Status: NEW → ASSIGNED
Pushed by drobertson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fff931ea85ef Record RAPL perf events as a profile counter. r=florian
Blocks: 1794941
Blocks: 1794942
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
Blocks: 1795047
Blocks: 1795281
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: