Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Windows #2

Open
RichardWarburton opened this issue Feb 17, 2014 · 2 comments
Open

Support Windows #2

RichardWarburton opened this issue Feb 17, 2014 · 2 comments

Comments

@RichardWarburton
Copy link
Member

I don't use windows or know the toolchain, need to find a helpful person.

@ceeaspb ceeaspb mentioned this issue Jul 17, 2014
RichardWarburton pushed a commit that referenced this issue Sep 4, 2015
ikavalio pushed a commit to ikavalio/honest-profiler that referenced this issue Aug 27, 2016
janmejay added a commit to janmejay/fk-prof that referenced this issue Jul 10, 2017
janmejay pushed a commit to janmejay/fk-prof that referenced this issue Jul 10, 2017
* Adds App Id selector

* Adds AppIdSelector component
@LunNova
Copy link

LunNova commented Sep 4, 2017

Windows doesn't seem to have an equivalent to SIGPROF, unfortunately.

Asynchronous Procedure Calls are nearly right - but they require the thread to be in a special alertable state before they will run. :(

"QueueUserAPCEx_v2" here uses a kernel mode driver to do it.

It may also be possible to suspend a thread, call SetThreadContext and resume it. Code example.

Does JFR actually use AsyncGetCallTrace on Windows?

@grandinj
Copy link

@nallar Seems like APCs would work fine - the thread does need to be allocated up front, and the thread needs to just sit in a loop calling SleepEx(), and then the APC function would get called on that thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants