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

Manage already-running traces #81

Open
daladim opened this issue Dec 1, 2022 · 1 comment
Open

Manage already-running traces #81

daladim opened this issue Dec 1, 2022 · 1 comment

Comments

@daladim
Copy link
Collaborator

daladim commented Dec 1, 2022

Maybe ferrisetw could be used to list and control already existing traces.

See QueryAllTracesW : https://learn.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-queryalltracesw

Could it also stop them? Subscribe to them? etc.

@daladim daladim changed the title List all running traces Manage already-running traces Dec 1, 2022
@daladim
Copy link
Collaborator Author

daladim commented Dec 1, 2022

Subscribing to an existing trace should be possible, just call OpenTraceW() on an existing trace name.

I'm not sure whether that's absolutely a good idea, because we're not sure then what providers have been setup (and in the current Rust code, this means we have no Providers nor their callback closures initialized).
Maybe closing and re-starting the trace would be the most sensible choice

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

No branches or pull requests

1 participant