frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
753 stars 245 forks source link

Thread time #705

Closed WorksButNotTested closed 5 months ago

WorksButNotTested commented 1 year ago

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.

oleavr commented 6 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.

WorksButNotTested commented 6 months ago

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?

oleavr commented 5 months ago

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! 🫠

WorksButNotTested commented 5 months ago

Superseded by https://github.com/frida/frida-gum/pull/800