Closed Bug 812946 Opened 12 years ago Closed 11 years ago

Mix C++ and JS backtraces on Linux x86/x64.

Categories

(Core :: Gecko Profiler, defect)

19 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: nbp, Unassigned)

References

Details

Attachments

(1 file)

The current implementation of the gecko profiler does not support mixing backtraces for C++ and JS in a profile.  The current implementation iterate on the C++ stack with the backtrace function which does not provide the frame pointer of each frame.

Mac implementation is using pthread_get_stackaddr_np, which can be translated with pthread_getattr_np on Linux.

This bug is a short-term fix as breakpad is supposed to replace this stack walking implementation in a long-term.
This is not urgent, not tested on tbpl, and is unlikely to fit all expectation.

This is just a not-so dirty version of my hacky patch to mix the C++ stack with the JS stack.  When testing with a browser or a few shell benchmarks, I saw a few hangs which might be related to Bug 757186.  In the mean time I provide this patch because it is still useful for profiling in the xpcshell no matters if there is a hang or not.
Unassigned my-self: I am not actively work on it.
And it seems to work, so maybe mark this bug as a duplicate of something else ?!
Assignee: nicolas.b.pierron → nobody
Status: ASSIGNED → NEW
This has been fixed elsewhere.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: