Replies: 1 comment 2 replies
-
When default handlers run, they just exit without unwinding and running drops like an unwinding panic does. You can try using the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a server app that I'm working on and wish to use
tracing-flame
to generate a flame chart. It just creates an empty file though.I create the flame layer and have
let guard = flame_layer.flush_on_drop();
. But the server never exits on it's own, just at Control-C to stop it, or if I stop the service with theservice
command. Is it because the program doesn't exit on it's own that maybe the guard isn't properly dropped? The Drop should still be handled accordingly, correct? If not, how can I trigger the flame graph data to be saved to disk right before Control-C?Beta Was this translation helpful? Give feedback.
All reactions