Skip to content

Commit 104cae0

Browse files
authored
gh-142927: Move hotspots up flamegraph sidebar (#145428)
1 parent 4e96282 commit 104cae0

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

Lib/profiling/sampling/_flamegraph_assets/flamegraph_template.html

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,51 @@ <h3 class="section-title">Profile Summary</h3>
178178
</div>
179179
</section>
180180

181+
<!-- Hotspots Section -->
182+
<section class="sidebar-section collapsible" id="hotspots-section">
183+
<button class="section-header" onclick="toggleSection('hotspots-section')">
184+
<h3 class="section-title">Hotspots</h3>
185+
<svg class="section-chevron" width="12" height="12" viewBox="0 0 12 12" fill="none">
186+
<path d="M3 4.5L6 7.5L9 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
187+
</svg>
188+
</button>
189+
<div class="section-content">
190+
<div class="hotspot" id="hotspot-1">
191+
<div class="hotspot-rank hotspot-rank--1">1</div>
192+
<div class="hotspot-info">
193+
<div class="hotspot-func" id="hotspot-func-1">--</div>
194+
<div class="hotspot-file" id="hotspot-file-1">--</div>
195+
<div class="hotspot-stats">
196+
<span class="hotspot-percent" id="hotspot-percent-1">--</span>
197+
<span id="hotspot-samples-1"></span>
198+
</div>
199+
</div>
200+
</div>
201+
<div class="hotspot" id="hotspot-2">
202+
<div class="hotspot-rank hotspot-rank--2">2</div>
203+
<div class="hotspot-info">
204+
<div class="hotspot-func" id="hotspot-func-2">--</div>
205+
<div class="hotspot-file" id="hotspot-file-2">--</div>
206+
<div class="hotspot-stats">
207+
<span class="hotspot-percent" id="hotspot-percent-2">--</span>
208+
<span id="hotspot-samples-2"></span>
209+
</div>
210+
</div>
211+
</div>
212+
<div class="hotspot" id="hotspot-3">
213+
<div class="hotspot-rank hotspot-rank--3">3</div>
214+
<div class="hotspot-info">
215+
<div class="hotspot-func" id="hotspot-func-3">--</div>
216+
<div class="hotspot-file" id="hotspot-file-3">--</div>
217+
<div class="hotspot-stats">
218+
<span class="hotspot-percent" id="hotspot-percent-3">--</span>
219+
<span id="hotspot-samples-3"></span>
220+
</div>
221+
</div>
222+
</div>
223+
</div>
224+
</section>
225+
181226
<!-- Thread Stats Section (GIL/GC) -->
182227
<section class="sidebar-section thread-stats-section collapsible" id="thread-stats-bar" style="display: none;">
183228
<button class="section-header" onclick="toggleSection('thread-stats-bar')">
@@ -237,51 +282,6 @@ <h3 class="section-title">Runtime Stats</h3>
237282
</div>
238283
</section>
239284

240-
<!-- Hotspots Section -->
241-
<section class="sidebar-section collapsible" id="hotspots-section">
242-
<button class="section-header" onclick="toggleSection('hotspots-section')">
243-
<h3 class="section-title">Hotspots</h3>
244-
<svg class="section-chevron" width="12" height="12" viewBox="0 0 12 12" fill="none">
245-
<path d="M3 4.5L6 7.5L9 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
246-
</svg>
247-
</button>
248-
<div class="section-content">
249-
<div class="hotspot" id="hotspot-1">
250-
<div class="hotspot-rank hotspot-rank--1">1</div>
251-
<div class="hotspot-info">
252-
<div class="hotspot-func" id="hotspot-func-1">--</div>
253-
<div class="hotspot-file" id="hotspot-file-1">--</div>
254-
<div class="hotspot-stats">
255-
<span class="hotspot-percent" id="hotspot-percent-1">--</span>
256-
<span id="hotspot-samples-1"></span>
257-
</div>
258-
</div>
259-
</div>
260-
<div class="hotspot" id="hotspot-2">
261-
<div class="hotspot-rank hotspot-rank--2">2</div>
262-
<div class="hotspot-info">
263-
<div class="hotspot-func" id="hotspot-func-2">--</div>
264-
<div class="hotspot-file" id="hotspot-file-2">--</div>
265-
<div class="hotspot-stats">
266-
<span class="hotspot-percent" id="hotspot-percent-2">--</span>
267-
<span id="hotspot-samples-2"></span>
268-
</div>
269-
</div>
270-
</div>
271-
<div class="hotspot" id="hotspot-3">
272-
<div class="hotspot-rank hotspot-rank--3">3</div>
273-
<div class="hotspot-info">
274-
<div class="hotspot-func" id="hotspot-func-3">--</div>
275-
<div class="hotspot-file" id="hotspot-file-3">--</div>
276-
<div class="hotspot-stats">
277-
<span class="hotspot-percent" id="hotspot-percent-3">--</span>
278-
<span id="hotspot-samples-3"></span>
279-
</div>
280-
</div>
281-
</div>
282-
</div>
283-
</section>
284-
285285
<!-- Thread Filter Section -->
286286
<section class="sidebar-section filter-section" id="thread-section" style="display: none;">
287287
<label class="filter-label" for="thread-filter">Thread Filter</label>

0 commit comments

Comments
 (0)