Closed Bug 1329873 Opened 7 years ago Closed 7 years ago

Profiling bug 1269695 with the Gecko Profiler makes us spend ~500ms in ObjectGroup::findAllocationSite

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1330532

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

Attachments

(2 files)

Attached image Instruments Profile
STR:

1. Use a clean profile on Nightly and install the Gecko Profiler add-on from https://new.cleopatra.io/
2. Make sure the profiler is running, and the "Show JIT Optimizations" checkbox under the Performance tab of devtools is off.
3. Profile bug 1269695 using Instruments, with Gecko Profiler also running.
4. See the screenshot which is the call to ObjectGroup::findAllocationSite().
It seems that the loop in is *extremely* hot <http://searchfox.org/mozilla-central/rev/8144fcc62054e278fe5db9666815cc13188c96fa/js/src/vm/ObjectGroup.cpp#1646>

According to sstangl and sfink, this code should only be used to show the JIT information in devtools, so it shouldn't even be running when the Gecko Profiler is on.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
I'm not sure this is a total dupe. At some point, we'll want to use the JIT inspector information in the profiler itself, so it would be nice to reduce the overhead so that it doesn't completely bias the sampling. I don't know how fundamentally expensive it is, or it can collect all current information in a cheaper way, or if it can be run in a partial information mode. But I think duping this bug is probably fine, if we open up a new bug at the point when we want to pull in the JIT info.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: