From 402612ee2b8edc553c56073ab082110c55bc6293 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Mon, 12 Mar 2018 01:45:20 +0300 Subject: [PATCH] #0 [Gui] Fixed hierarchy building for zero duration blocks - events and arbitrary values are always visible --- profiler_gui/tree_widget_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler_gui/tree_widget_loader.cpp b/profiler_gui/tree_widget_loader.cpp index 3247803..decbff9 100644 --- a/profiler_gui/tree_widget_loader.cpp +++ b/profiler_gui/tree_widget_loader.cpp @@ -562,7 +562,7 @@ size_t TreeWidgetLoader::setTreeInternal(const ::profiler::BlocksTreeRoot& _thre const auto endTime = child.node->end(); const auto duration = endTime - startTime; - if (duration == 0 && !_addZeroBlocks) + if (duration == 0 && !_addZeroBlocks && easyDescriptor(child.node->id()).type() == profiler::BlockType::Block) continue; _duration += duration;