[webkit-dev] Getting the frame pointer and program counter of a thread on gtk and efl ports

Saam barati sbarati at apple.com
Wed Jan 6 14:45:37 PST 2016


Hi all,
I’m writing some platform dependent code for a sampling profiler I’m adding to JSC.
I’m looking for a way to get a thread’s frame pointer and program counter in the gtk and efl ports while that thread is paused.
We already have a way to grab the stack pointer of a thread on all ports. If you look inside JavaScriptCore/heap/MachineStackMarker.h/cpp you
will see the code that does this. I’ve also written code that grabs PC and FP for other platforms. If you look at my WIP patch
you can see that code: https://bugs.webkit.org/show_bug.cgi?id=151713 <https://bugs.webkit.org/show_bug.cgi?id=151713>.

I’d like to get this working on all ports before landing. Do people who maintain the gtk and efl ports
have an idea on how to do this? Or could you help me figure out a solution?

Thanks,
Saam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20160106/70b07308/attachment.html>


More information about the webkit-dev mailing list