Commit 8828ddd
[Perf panel] Prefer profile calls over trace events when sorting
If timestamp and duration are equal between a trace event and a profile
call, the profile call should be put first when sorting in ascending
order. This is because when the timesamp of a profile call is exactly
the same as a trace event's, it's likely because the SamplesIntegrator
sets the profile call's ts so that it ends up parenting the trace event
in the flame chart. Without this extra check in the comparator, the
precedence meant by the samples integrator isn't certain to happen.
Bug: 389056697
Change-Id: I8c3754782397ab640888ee3fa5fa3e91772e6aef
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6264603
Reviewed-by: Alina Varkki <[email protected]>
Commit-Queue: Andres Olivares <[email protected]>1 parent 931c509 commit 8828ddd
File tree
4 files changed
+14
-5
lines changed- front_end
- models/trace/helpers
- panels/timeline
- utils
4 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
129 | 139 | | |
130 | 140 | | |
131 | 141 | | |
132 | 142 | | |
133 | 143 | | |
134 | 144 | | |
135 | | - | |
| 145 | + | |
136 | 146 | | |
137 | 147 | | |
138 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments