<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<br class="">I’m writing some platform dependent code for a sampling profiler I’m adding to JSC.<br class="">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.<br class="">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<br class="">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<br class="">you can see that code:&nbsp;<a href="https://bugs.webkit.org/show_bug.cgi?id=151713" class="">https://bugs.webkit.org/show_bug.cgi?id=151713</a>.<br class=""><br class="">I’d like to get this working on all ports before landing. Do people who maintain the gtk and efl ports<br class="">have an idea on how to do this? Or could you help me figure out a solution?<br class=""><br class="">Thanks,<br class="">Saam</body></html>