diff options
author | Siri Hansen <[email protected]> | 2018-01-12 11:25:36 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-01-12 11:25:36 +0100 |
commit | 8fbbc9713e86b51295835f4b5065769c4ca407ef (patch) | |
tree | 0b4f2a01db7a4d4b6be0ad7782414ef6e4f0b40b /lib/observer/src/cdv_detail_wx.erl | |
parent | 00c255c94ffad33a57e9604cee67cde5f717b99a (diff) | |
parent | ebc81123499da2e0fa03f8eb989dfeb785a04bd3 (diff) | |
download | otp-8fbbc9713e86b51295835f4b5065769c4ca407ef.tar.gz otp-8fbbc9713e86b51295835f4b5065769c4ca407ef.tar.bz2 otp-8fbbc9713e86b51295835f4b5065769c4ca407ef.zip |
Merge branch 'siri/cdv/many-links/OTP-14725' into maint
* siri/cdv/many-links/OTP-14725:
[observer] Improve performance for many links or monitors
Diffstat (limited to 'lib/observer/src/cdv_detail_wx.erl')
-rw-r--r-- | lib/observer/src/cdv_detail_wx.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/observer/src/cdv_detail_wx.erl b/lib/observer/src/cdv_detail_wx.erl index f6d282638a..6c4739042b 100644 --- a/lib/observer/src/cdv_detail_wx.erl +++ b/lib/observer/src/cdv_detail_wx.erl @@ -48,6 +48,7 @@ init([Id, Data, ParentFrame, Callback, App, Parent]) -> display_progress(ParentFrame,App), case Callback:get_details(Id, Data) of {ok,Details} -> + display_progress_pulse(Callback,Id), init(Id,ParentFrame,Callback,App,Parent,Details); {yes_no, Info, Fun} -> destroy_progress(App), @@ -69,8 +70,16 @@ display_progress(ParentFrame,cdv) -> "Reading data"); display_progress(_,_) -> ok. + +%% Display pulse while creating process detail page with much data +display_progress_pulse(cdv_proc_cb,Pid) -> + observer_lib:report_progress({ok,"Displaying data for "++Pid}), + observer_lib:report_progress({ok,start_pulse}); +display_progress_pulse(_,_) -> + ok. + destroy_progress(cdv) -> - observer_lib:destroy_progress_dialog(); + observer_lib:sync_destroy_progress_dialog(); destroy_progress(_) -> ok. |