google / UIforETW

User interface for recording and managing ETW traces
https://randomascii.wordpress.com/2015/04/14/uiforetw-windows-performance-made-easier/
Apache License 2.0
1.55k stars 201 forks source link

Unable to find any documentation on where to change number of circular buffers. #110

Open cfeied opened 6 years ago

cfeied commented 6 years ago

Changing etwcirc.bat doesn't change the xperf command line that's shown in the UIforETW window, and there's nothing in Settings to do this. Where do I increase the kCircBuffer count?

randomascii commented 6 years ago

There is currently no way of changing the number of circular buffers or their size. Instead the C++ code uses various heuristics to select reasonable values. This keeps the UI simple.

Options to adjust the size of the buffers (perhaps small, medium, and large, with medium being the default) could be useful.

Or, for one-off investigations you can just change the code and build your own version of UIforETW.

janis-veinbergs commented 4 years ago

This definitely needs to be customizable. On systems with 512MB of ram and very high activity, it gives me 300MB buffer that gives me... just a few seconds of data.

But I'm glad I'v found this in README as the very first item in Most important tasks:

Implement more settings - configure trace directories, buffer sizes, option for stacks on user events.

Thanks for your blog posts, main source for learning profiling :)