fsatrace icon indicating copy to clipboard operation
fsatrace copied to clipboard

Consider ETW on Windows

Open ndmitchell opened this issue 4 years ago • 3 comments

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.

ndmitchell avatar Nov 25 '20 16:11 ndmitchell

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 avatar Nov 27 '20 18:11 jacereda

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

jacereda avatar Nov 27 '20 18:11 jacereda

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...

jacereda avatar Nov 27 '20 18:11 jacereda