Closed WorksButNotTested closed 5 months ago
How about improving libs/prof
to add a Sampler
implementation for this? We could then expose that to JS, and get the benefit of the other samplers too.
That sounds good. I can add the sampler pretty easily, but wasn't sure where to start with the JS bindings without ending up with a load of duplication?
That sounds good. I can add the sampler pretty easily, but wasn't sure where to start with the JS bindings without ending up with a load of duplication?
Awesome! I started on JS bindings here, though there's not much there it might provide some useful context. Can't believe it's been 7 years since then! ðŸ«
Superseded by https://github.com/frida/frida-gum/pull/800
Please note that this PR also contains the following:
This is because the RunOnThread functionality is necessary for it to function. This PR adds support for reading user_time (the time the CPU has spent executing in user-mode in microseconds) on Linux and Android based systems. Similar support for other systems should be relatively straightforward, but aren't included in this PR.