The CPU data collections are processed according to the visibility of the entries. If the filtering condition changes, we need to reprocess those data collections. Signed-off-by: Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> --- kernel-shark-qt/src/KsUtils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel-shark-qt/src/KsUtils.cpp b/kernel-shark-qt/src/KsUtils.cpp index 8bb0970..25e7fdb 100644 --- a/kernel-shark-qt/src/KsUtils.cpp +++ b/kernel-shark-qt/src/KsUtils.cpp @@ -186,10 +186,14 @@ void KsDataStore::update() if (!kshark_instance(&kshark_ctx)) return; + _unregisterCPUCollections(); + if (kshark_filter_is_set(kshark_ctx)) { kshark_filter_entries(kshark_ctx, _rows, _dataSize); emit updateWidgets(this); } + + registerCPUCollections(); } /** Register a collection of visible entries for each CPU. */ -- 2.17.1
![]() |