aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_trace_wx.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-04-29 12:00:23 +0200
committerSiri Hansen <[email protected]>2016-05-19 15:21:52 +0200
commite4c25c20f548c068057547ad2095a4c65afc0d86 (patch)
tree0915c68f489ed7987a37b2ae2a8aa90f62bcd0d3 /lib/observer/src/observer_trace_wx.erl
parent7b478eced25af1d3143d232e503723aaf86dfe8a (diff)
downloadotp-e4c25c20f548c068057547ad2095a4c65afc0d86.tar.gz
otp-e4c25c20f548c068057547ad2095a4c65afc0d86.tar.bz2
otp-e4c25c20f548c068057547ad2095a4c65afc0d86.zip
[observer] Allow multiple select in Ports tab
This is helpful when selecting ports to be traced.
Diffstat (limited to 'lib/observer/src/observer_trace_wx.erl')
-rw-r--r--lib/observer/src/observer_trace_wx.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/observer/src/observer_trace_wx.erl b/lib/observer/src/observer_trace_wx.erl
index ac8c6cdc4f..dfb4857c0b 100644
--- a/lib/observer/src/observer_trace_wx.erl
+++ b/lib/observer/src/observer_trace_wx.erl
@@ -19,7 +19,7 @@
-module(observer_trace_wx).
--export([start_link/2, add_processes/2, add_ports/2]).
+-export([start_link/2, add_processes/1, add_ports/1]).
-export([init/1, handle_info/2, terminate/2, code_change/3, handle_call/3,
handle_event/2, handle_cast/2]).
@@ -83,11 +83,11 @@
start_link(Notebook, ParentPid) ->
wx_object:start_link(?MODULE, [Notebook, ParentPid], []).
-add_processes(Tracer, Pids) when is_list(Pids) ->
- wx_object:cast(Tracer, {add_processes, Pids}).
+add_processes(Pids) when is_list(Pids) ->
+ wx_object:cast(observer_wx:get_tracer(), {add_processes, Pids}).
-add_ports(Tracer, Ports) when is_list(Ports) ->
- wx_object:cast(Tracer, {add_ports, Ports}).
+add_ports(Ports) when is_list(Ports) ->
+ wx_object:cast(observer_wx:get_tracer(), {add_ports, Ports}).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%