diff options
author | Siri Hansen <[email protected]> | 2016-05-12 15:50:19 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2016-05-20 09:40:56 +0200 |
commit | 7db703f88a8665bf6fc3266619044da3c882b1e3 (patch) | |
tree | 25690c8c564b2d5cb504af93e0dfd2d7402345f6 /lib/observer/src/observer_trace_wx.erl | |
parent | ebd440bfc9eb685606250a82cae352f1ee37dac6 (diff) | |
download | otp-7db703f88a8665bf6fc3266619044da3c882b1e3.tar.gz otp-7db703f88a8665bf6fc3266619044da3c882b1e3.tar.bz2 otp-7db703f88a8665bf6fc3266619044da3c882b1e3.zip |
[observer] Automatically add active node
When setting trace flags on 'new_processes' or 'new_ports', the
currently active node is now automatically added if no other node is
traced.
Diffstat (limited to 'lib/observer/src/observer_trace_wx.erl')
-rw-r--r-- | lib/observer/src/observer_trace_wx.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/observer/src/observer_trace_wx.erl b/lib/observer/src/observer_trace_wx.erl index 7df599c602..af90e2100c 100644 --- a/lib/observer/src/observer_trace_wx.erl +++ b/lib/observer/src/observer_trace_wx.erl @@ -774,6 +774,7 @@ do_add_pid_or_port(POpts, Nview, LCtrl, OldPs, Ns0, Check) -> {Ps, New, _Changed} -> Ns1 = lists:usort([node(Id) || #titem{id=Id} <- New, Check(Id)]), Nodes = case ordsets:subtract(Ns1, Ns0) of + [] when Ns0==[] -> [observer_wx:get_active_node()]; [] -> Ns0; %% No new Nodes NewNs -> ordsets:union(NewNs, Ns0) end, |