aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_pro_wx.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-01-22 12:09:29 +0100
committerDan Gudmundsson <[email protected]>2018-01-22 12:09:29 +0100
commit8aa0a6aef5623ff226ea511b94b82e514dccc83b (patch)
tree92725c3a7027193979fa27bdc16bf15c2a727e91 /lib/observer/src/observer_pro_wx.erl
parent69de63049417cf7e047f035b5e086caad9dc7932 (diff)
parent9392f08642c8b74dc4fc9d32a6959174dfb673eb (diff)
downloadotp-8aa0a6aef5623ff226ea511b94b82e514dccc83b.tar.gz
otp-8aa0a6aef5623ff226ea511b94b82e514dccc83b.tar.bz2
otp-8aa0a6aef5623ff226ea511b94b82e514dccc83b.zip
Merge branch 'dgud/observer/opt-tv-tab/OTP-14856' into maint
* dgud/observer/opt-tv-tab/OTP-14856: observer: Fix change accum Remove double calls observer: Don't crash for late messages observer: Optimize tv tab for many tables
Diffstat (limited to 'lib/observer/src/observer_pro_wx.erl')
-rw-r--r--lib/observer/src/observer_pro_wx.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/observer_pro_wx.erl b/lib/observer/src/observer_pro_wx.erl
index d612e0a1c5..1c40afba46 100644
--- a/lib/observer/src/observer_pro_wx.erl
+++ b/lib/observer/src/observer_pro_wx.erl
@@ -572,7 +572,8 @@ change_accum(true, S0) ->
S0#holder{accum=true};
change_accum(false, S0=#holder{info=Info}) ->
self() ! refresh,
- S0#holder{accum=lists:sort(array:to_list(Info))}.
+ Accum = [{Pid, Reds} || #etop_proc_info{pid=Pid, reds=Reds} <- array:to_list(Info)],
+ S0#holder{accum=lists:sort(Accum)}.
handle_update_old(#etop_info{procinfo=ProcInfo0},
S0=#holder{parent=Parent, sort=Sort=#sort{sort_key=KeyField}}) ->