Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Don't trace epl_tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Slaski committed Jun 28, 2017
1 parent e9ffe23 commit 0a9121c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/epl/src/epl_tracer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ init(Node) ->
F(F, Ref, undefined);
(F, Ref, Trace) ->
receive
{trace_ts, Pid, 'receive', Msg, _TS} ->
{trace_ts, Pid, 'receive', Msg, _TS} when Pid /= self() ->
%% we count received messages and their sizes
Size = erts_debug:flat_size(Msg),
case ets:lookup(epl_timeline_pids, Pid) of
Expand All @@ -117,7 +117,7 @@ init(Node) ->
end,
F(F, Ref, Trace);
{trace_ts, Pid1, send, _Msg, Pid2, _TS}
when Pid1 < Pid2 ->
when Pid1 < Pid2, Pid1 /= self(), Pid2 /= self() ->
%% we have one key for each Pid pair
%% the smaller Pid is first element of the key
case ets:lookup(epl_send, {Pid1, Pid2}) of
Expand All @@ -127,7 +127,7 @@ init(Node) ->
end,
F(F, Ref, Trace);
{trace_ts, Pid1, send, _Msg, Pid2, _TS}
when Pid1 > Pid2 ->
when Pid1 > Pid2, Pid1 /= self(), Pid2 /= self() ->
%% we have one key for each Pid pair
%% the smaller Pid is first element of the key
case ets:lookup(epl_send, {Pid2, Pid1}) of
Expand Down

0 comments on commit 0a9121c

Please sign in to comment.