Skip to content

Profiler options (-o, -t) are "persisted" between profiler runs (pairs of attach-stop) #70

@stIncMale

Description

@stIncMale

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

  1. Start or restart a Java process that will be profiled.
  2. Run profiler.sh -d 5 -f prof.txt -o summary,traces=1 -t 1234.
  3. Try turning off -t option and disable traces: profiler.sh -d 5 -f prof.txt -o summary 1234.
  4. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions