0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00

#0 [Gui] Fixed hierarchy building for zero duration blocks - events and arbitrary values are always visible

This commit is contained in:
Victor Zarubkin 2018-03-12 01:45:20 +03:00
parent 5e632bedee
commit 402612ee2b

View File

@ -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;