Skip to content

Commit 02a379d

Browse files
committed
fixup! Add heatmap visualization to Tachyon sampling profiler
1 parent 51c3f34 commit 02a379d

File tree

3 files changed

+502
-336
lines changed

3 files changed

+502
-336
lines changed

Lib/profiling/sampling/heatmap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Tachyon Profiler - Heatmap JavaScript
22
// Interactive features for the heatmap visualization
33

4-
// Apply background colors from data attributes on page load
4+
// Apply background colors on page load
55
document.addEventListener('DOMContentLoaded', function() {
6+
// Apply background colors
67
document.querySelectorAll('.code-line[data-bg-color]').forEach(line => {
78
const bgColor = line.getAttribute('data-bg-color');
89
if (bgColor) {

Lib/profiling/sampling/heatmap_index_template.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1>Tachyon Profiler Heatmap Report</h1>
2626
</div>
2727
<div class="stat-card">
2828
<span class="stat-value"><!-- TOTAL_SAMPLES --></span>
29-
<span class="stat-label">Total Samples</span>
29+
<span class="stat-label">Total Snapshots</span>
3030
</div>
3131
<div class="stat-card">
3232
<span class="stat-value"><!-- DURATION --></span>
@@ -58,9 +58,8 @@ <h2>Profiled Files</h2>
5858
<th onclick="sortTable(0)">File ⇅</th>
5959
<th onclick="sortTable(1)">Module ⇅</th>
6060
<th onclick="sortTable(2)">Type ⇅</th>
61-
<th onclick="sortTable(3)" style="text-align: right;">Samples ⇅</th>
61+
<th onclick="sortTable(3)" style="text-align: right;">Line Samples ⇅</th>
6262
<th onclick="sortTable(4)" style="text-align: right;">Lines Hit ⇅</th>
63-
<th onclick="sortTable(5)" style="text-align: right;">% of Total ⇅</th>
6463
<th style="text-align: left;">Intensity</th>
6564
</tr>
6665
</thead>

0 commit comments

Comments
 (0)