async-profiler version
8b2fd87
Description
Profiler options (at least -o and -t) are "persisted" between profiler runs (pairs of attach-stop). As a result, one can not disable them once they have been set.
Steps to reproduce
- Start or restart a Java process that will be profiled.
- Run
profiler.sh -d 5 -f prof.txt -o summary,traces=1 -t 1234.
- Try turning off
-t option and disable traces: profiler.sh -d 5 -f prof.txt -o summary 1234.
- Observe that profiler's output still works as if options
traces=1 -t have been set.
Workaround
Restart the Java process that is being profiled. This means that the profiler options are either stored in the memory of the process, or in a temporary file that is deleted once the process quits.
async-profiler version
8b2fd87
Description
Profiler options (at least
-oand-t) are "persisted" between profiler runs (pairs of attach-stop). As a result, one can not disable them once they have been set.Steps to reproduce
profiler.sh -d 5 -f prof.txt -o summary,traces=1 -t 1234.-toption and disabletraces:profiler.sh -d 5 -f prof.txt -o summary 1234.traces=1 -thave been set.Workaround
Restart the Java process that is being profiled. This means that the profiler options are either stored in the memory of the process, or in a temporary file that is deleted once the process quits.