Skip to content

Commit 8332aa3

Browse files
committed
tools: fixes tprof not stopping tracing
A call to `tprof:enable_trace(new|existing)` starts tracing processes. To stop it, one calls `tprof:disable_trace(new|existing)`. However, the guard to stop tracing was matching on `new_processes | existing_processes`. The return happens to say `0` processes are traced now, but the tracing did not stop.
1 parent c388a2d commit 8332aa3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tools/src/tprof.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ disable_trace(Server, Spec, Options) ->
748748
disable_session_trace(Session, Procs) ->
749749
disable_session_trace(Session, Procs, default_trace_options()).
750750
disable_session_trace(Session, Procs, Options) when Procs =:= all;
751-
Procs =:= new_processes;
752-
Procs =:= existing_processes ->
751+
Procs =:= new;
752+
Procs =:= existing ->
753753
trace:process(Session, Procs, false, trace_options(Options));
754754
disable_session_trace(Session, {Children, PidOrName}, Options) when Children =:= children;
755755
Children =:= all_children ->

0 commit comments

Comments
 (0)