Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Easy Profiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
Easy Profiler
Commits
365d1608
Commit
365d1608
authored
Dec 27, 2016
by
Victor Zarubkin
Browse files
Options
Downloads
Patches
Plain Diff
(GUI) Fixed wrong hierarchy tree building in "Plain mode" (not all blocks were added)
parent
bf7bf10b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
profiler_gui/tree_widget_loader.cpp
+20
-8
20 additions, 8 deletions
profiler_gui/tree_widget_loader.cpp
with
20 additions
and
8 deletions
profiler_gui/tree_widget_loader.cpp
+
20
−
8
View file @
365d1608
...
...
@@ -777,11 +777,22 @@ size_t EasyTreeWidgetLoader::setTreeInternalPlain(const ::profiler::BlocksTreeRo
{
++
total_items
;
size_t
children_items_number
=
0
;
::
profiler
::
timestamp_t
children_duration
=
0
;
if
(
!
child
.
children
.
empty
())
{
children_items_number
=
setTreeInternalPlain
(
_threadRoot
,
_firstCswitch
,
_beginTime
,
child
.
children
,
_frame
,
_frame
,
_left
,
_right
,
_strict
,
children_duration
,
_colorizeRows
,
_addZeroBlocks
,
_units
);
if
(
interrupted
())
break
;
}
if
(
it
->
second
!=
nullptr
&&
child
.
per_frame_stats
!=
nullptr
)
{
auto
item
=
it
->
second
;
auto
children_duration
=
calculateChildrenDurationRecursive
(
child
.
children
,
it
->
first
);
//auto children_duration = calculateChildrenDurationRecursive(child.children, it->first);
if
(
children_duration
!=
0
)
{
auto
self_duration
=
item
->
data
(
COL_SELF_DURATION
,
Qt
::
UserRole
).
toULongLong
()
-
children_duration
;
int
percentage
=
100
;
...
...
@@ -791,6 +802,7 @@ size_t EasyTreeWidgetLoader::setTreeInternalPlain(const ::profiler::BlocksTreeRo
item
->
setTimeSmart
(
COL_SELF_DURATION
,
_units
,
self_duration
);
item
->
setData
(
COL_SELF_DURATION_PERCENT
,
Qt
::
UserRole
,
percentage
);
item
->
setText
(
COL_SELF_DURATION_PERCENT
,
QString
::
number
(
percentage
));
}
bool
hasContextSwitch
=
false
;
::
profiler
::
timestamp_t
idleTime
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment