Closed Bug 989589 Opened 10 years ago Closed 10 years ago

Implement non time-based sampling such as cache misses

Categories

(Core :: Gecko Profiler, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 990790

People

(Reporter: BenWa, Unassigned)

Details

Currently we sample based on time. If we replaced the timer with a hardware event interrupt like cache misses we could find which parts of our code are responsible for cache misses or other similar events.

I tried implementing this using linux perf_events but it doesn't look like I can signal/interrupt the user space process to trigger a sample after X events. Instead all I can do is store the data in a circular buffer. We'd need a user space interrupt to integrate with our user space profiler.
I filed bug 990790 about a way we could use the perf_event framework for userspace profiling, because I didn't notice this bug until just now.  We might want to dup them, since they seem to have basically the same goal.
Nice! That was exactly what I am looking for.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.