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:
parent
5e632bedee
commit
402612ee2b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user