Message ID | 20181128151530.21965-3-ykaradzhov@vmware.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d1e0d8cb76b7233e7eb98eeae19eba3fc5f51c59 |
Headers | show |
Series | More modifications and bug fixes toward KS 1.0 | expand |
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. */
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@vmware.com> --- kernel-shark-qt/src/KsUtils.cpp | 4 ++++ 1 file changed, 4 insertions(+)