goldshtn / LiveStacks

Collect, aggregate, and display live stack traces for ETW events, including CPU sampling, of native and .NET processes.
MIT License
53 stars 4 forks source link

Print only on Ctrl+C if no interval and count are provided #2

Closed goldshtn closed 7 years ago

goldshtn commented 7 years ago

For a quick-and-dirty profiling session, we'd often want to run LiveStacks for a few seconds and then output the call stack summary (folded or not) for the entire duration. The current interval and count settings make it a bit hard to express. By default, switch to printing output only when the user stops the session with Ctrl+C. The interval and count options would override this behavior, e.g. -i 5 would mean print at 5-second intervals indefinitely, and -c 5 would mean print 5 times at default intervals (currently 10 seconds).