plasma-umass / coz

Coz: Causal Profiling
Other
4.08k stars 159 forks source link

`coz run` produces no output if interrupted by Ctrl-C #143

Closed vadimcn closed 4 years ago

vadimcn commented 5 years ago

It seems that coz run ... saves data only when profiling target reaches the end of main().

Some programs are designed to exit only when interrupted, or take a long time to terminate. It would be nice if Coz could deal with signals, exit(), etc, and save the data collected up to that point.

antoyo commented 4 years ago

Not sure about that. It seems to periodically write to profile.coz.

The thing I saw, though, is that my server was missing latency points and I needed to run it for a long time in order to generate an actual graph. I also need to move the slider for minimum points to 2-5 points instead of 10.

emeryberger commented 4 years ago

Coz definitely periodically writes to profile.coz. While Coz works without progress points, it's really best to use them.