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

Consider ETW on Windows #39

Open
ndmitchell opened this issue Nov 25, 2020 · 3 comments
Open

Consider ETW on Windows #39

ndmitchell opened this issue Nov 25, 2020 · 3 comments

Comments

@ndmitchell
Copy link
Contributor

https://docs.microsoft.com/en-us/windows/win32/etw/about-event-tracing - not sure if that would be faster or slower than Kernel hooking. There's a chance it might be simpler though. See https://github.com/lowleveldesign/wtrace for an example of building it up to a full tracing app. I measured 21% overhead using fsatrace on Windows (see https://ndmitchell.com/downloads/paper-build_scripts_with_perfect_dependencies-18_nov_2020.pdf S5.2), although some of that will have been spawning the fsatrace binary.

@jacereda
Copy link
Owner

I fixed a -O0 flag in the makefile not too long ago. Perhaps that measurement was made while the flag was there? 21% seems way too much...

@jacereda
Copy link
Owner

Also, I haven't seen asserts in a while, maybe it would be a good idea to compile with -DNDEBUG.

@jacereda
Copy link
Owner

Also, I haven't seen asserts in a while, maybe it would be a good idea to compile with -DNDEBUG.

Looks like there isn't any assert in performance-critical paths...

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

2 participants