diff options
author | Siri Hansen <[email protected]> | 2018-01-10 17:49:35 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-01-10 17:49:35 +0100 |
commit | ebc81123499da2e0fa03f8eb989dfeb785a04bd3 (patch) | |
tree | 36e4aee5f84adeb3322956e7a2e40e641b5cb9b9 /lib/observer/src/cdv_info_wx.erl | |
parent | df8499995b4994d3f85f4b80fc3c2cf941a99cdc (diff) | |
download | otp-ebc81123499da2e0fa03f8eb989dfeb785a04bd3.tar.gz otp-ebc81123499da2e0fa03f8eb989dfeb785a04bd3.tar.bz2 otp-ebc81123499da2e0fa03f8eb989dfeb785a04bd3.zip |
[observer] Improve performance for many links or monitors
When a process has many links and/or monitors, it could earlier take
very long time to display the process information window. This is now
improved by only showing a few links and monitors, and then an link
named "more..." to expand the rest.
Reading of the "Link list" from a crashdump is also improved.
Diffstat (limited to 'lib/observer/src/cdv_info_wx.erl')
-rw-r--r-- | lib/observer/src/cdv_info_wx.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/observer/src/cdv_info_wx.erl b/lib/observer/src/cdv_info_wx.erl index 7e416dd11a..07c28610e2 100644 --- a/lib/observer/src/cdv_info_wx.erl +++ b/lib/observer/src/cdv_info_wx.erl @@ -95,6 +95,10 @@ handle_cast(Msg, State) -> io:format("~p~p: Unhandled cast ~tp~n",[?MODULE, ?LINE, Msg]), {noreply, State}. +handle_event(#wx{obj=MoreEntry,event=#wxMouse{type=left_down},userData={more,More}}, State) -> + observer_lib:add_scroll_entries(MoreEntry,More), + {noreply, State}; + handle_event(#wx{event=#wxMouse{type=left_down},userData=Target}, State) -> cdv_virtual_list_wx:start_detail_win(Target), {noreply, State}; |