namhyung/uftrace

I want to automatically generate a /info file when the program ends.

m9rco opened this issue · 5 comments

I want to automatically generate a /info file when the program ends.

Why can't either of the following methods generate a /info file in the collection directory?

uftrace record --data=uftrace_196859 --auto-args --time --signal=SIGTERM@finish --signal=SIGKILL@finish app

Is there a way to stop collection and generate an info file when the program terminates?

It should generate the info file when the target program terminates. Did you terminate your application by sending a signal, or did it exit normally?

I terminate the application through a signal. Currently, to correctly obtain the info file, I need to kill the process of gprep uftrace with kill -15.

Oh, do you mean uftrace didn't stop or didn't generate the info file after your app finished? Or do you want to finish uftrace while your app is running?

Didn't generate the info file after my app finished

That's strange.. what does it look like in the uftrace.data directory after your app finished? Do you see any *.sym files?