-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Expand file tree
/
Copy pathheatmap_index_template.html
More file actions
136 lines (130 loc) · 7.22 KB
/
heatmap_index_template.html
File metadata and controls
136 lines (130 loc) · 7.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tachyon Profiler - Heatmap Report</title>
<!-- INLINE_CSS -->
</head>
<body>
<div class="app-layout">
<!-- Top Bar -->
<header class="top-bar">
<div class="brand">
<div class="brand-logo"><!-- PYTHON_LOGO --></div>
<span class="brand-text">Tachyon</span>
<span class="brand-divider"></span>
<span class="brand-subtitle">Heatmap Report</span>
</div>
<div class="toolbar">
<a
class="toolbar-btn"
href="https://docs.python.org/<!-- PYTHON_VERSION -->/library/profiling.sampling.html"
target="_blank"
title="Documentation"
>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783"/>
</svg>
</a>
<button
class="toolbar-btn theme-toggle"
onclick="toggleTheme()"
title="Toggle theme"
id="theme-btn"
>
<svg class="icon-moon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M6 .278a.77.77 0 0 1 .08.858 7.2 7.2 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277q.792-.001 1.533-.16a.79.79 0 0 1 .81.316.73.73 0 0 1-.031.893A8.35 8.35 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.75.75 0 0 1 6 .278M4.858 1.311A7.27 7.27 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.32 7.32 0 0 0 5.205-2.162q-.506.063-1.029.063c-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286"/>
</svg>
<svg class="icon-sun" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" style="display:none">
<path d="M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708"/>
</svg>
</button>
</div>
</header>
<!-- Main Content -->
<div class="main-content">
<!-- Stats Summary -->
<div class="stats-summary">
<div class="stat-card">
<div class="stat-icon">📄</div>
<div class="stat-data">
<span class="stat-value"><!-- NUM_FILES --></span>
<span class="stat-label">Files Profiled</span>
</div>
<div class="stat-sparkline"></div>
</div>
<div class="stat-card">
<div class="stat-icon">📊</div>
<div class="stat-data">
<span class="stat-value"><!-- TOTAL_SAMPLES --></span>
<span class="stat-label">Total Snapshots</span>
</div>
<div class="stat-sparkline"></div>
</div>
<div class="stat-card">
<div class="stat-icon">⏱</div>
<div class="stat-data">
<span class="stat-value"><!-- DURATION --></span>
<span class="stat-label">Duration</span>
</div>
<div class="stat-sparkline"></div>
</div>
<div class="stat-card">
<div class="stat-icon">⚡</div>
<div class="stat-data">
<span class="stat-value"><!-- SAMPLE_RATE --></span>
<span class="stat-label">Samples/sec</span>
</div>
<div class="stat-sparkline"></div>
</div>
<div class="rate-card">
<div class="rate-header">
<div class="rate-info">
<div class="rate-icon">⚠</div>
<span class="rate-label">Error Rate</span>
</div>
<span class="rate-value"><!-- ERROR_RATE --></span>
</div>
<div class="rate-bar">
<div class="rate-fill <!-- ERROR_RATE_CLASS -->" style="width: <!-- ERROR_RATE_WIDTH -->%;"></div>
</div>
</div>
<div class="rate-card">
<div class="rate-header">
<div class="rate-info">
<div class="rate-icon">💥</div>
<span class="rate-label">Missed Samples</span>
</div>
<span class="rate-value"><!-- MISSED_SAMPLES --></span>
</div>
<div class="rate-bar">
<div class="rate-fill <!-- MISSED_SAMPLES_CLASS -->" style="width: <!-- MISSED_SAMPLES_WIDTH -->%;"></div>
</div>
</div>
</div>
<!-- File List Section -->
<div class="section-header">
<h2 class="section-title">Profiled Files</h2>
</div>
<div class="filter-controls">
<button onclick="expandAll()" class="control-btn">Expand All</button>
<button onclick="collapseAll()" class="control-btn">Collapse All</button>
</div>
<div class="module-sections">
<!-- SECTIONS_HTML -->
</div>
</div>
<!-- Status Bar -->
<footer class="status-bar">
<span class="status-item">
<span class="status-value">Tachyon Profiler</span>
</span>
<span class="status-item">
<span class="status-label">Python Sampling Profiler</span>
</span>
</footer>
</div>
<!-- INLINE_JS -->
</body>
</html>