Skip to content

Commit 5d3d2cb

Browse files
committed
fixup! fixup! fixup! Update license.rst
1 parent 7096846 commit 5d3d2cb

File tree

3 files changed

+42
-36
lines changed

3 files changed

+42
-36
lines changed

Lib/profiling/sampling/flamegraph.css

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ body {
2525
align-items: center;
2626
justify-content: center;
2727
text-align: center;
28+
gap: 20px;
2829
}
2930

3031
.python-logo {
@@ -61,6 +62,37 @@ body {
6162
font-weight: 300;
6263
}
6364

65+
.header-search {
66+
width: 100%;
67+
max-width: 500px;
68+
}
69+
70+
.header-search #search-input {
71+
width: 100%;
72+
padding: 12px 20px;
73+
border: 2px solid rgba(255, 255, 255, 0.2);
74+
border-radius: 25px;
75+
font-size: 16px;
76+
font-family: inherit;
77+
background: rgba(255, 255, 255, 0.95);
78+
color: #2e3338;
79+
transition: all 0.3s ease;
80+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
81+
backdrop-filter: blur(10px);
82+
}
83+
84+
.header-search #search-input:focus {
85+
outline: none;
86+
border-color: rgba(255, 255, 255, 0.8);
87+
background: rgba(255, 255, 255, 1);
88+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
89+
transform: translateY(-2px);
90+
}
91+
92+
.header-search #search-input::placeholder {
93+
color: #6c757d;
94+
}
95+
6496
.stats-section {
6597
background: #ffffff;
6698
padding: 24px 0;
@@ -164,32 +196,6 @@ body {
164196
text-align: center;
165197
}
166198

167-
.search-container {
168-
max-width: 1200px;
169-
margin: 16px auto 0 auto;
170-
padding: 0 24px;
171-
text-align: center;
172-
}
173-
174-
#search-input {
175-
padding: 12px 20px;
176-
border: 2px solid #e9ecef;
177-
border-radius: 6px;
178-
font-size: 14px;
179-
font-family: inherit;
180-
background: white;
181-
transition: all 0.2s ease;
182-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
183-
display: inline-block;
184-
width: auto;
185-
min-width: 300px;
186-
}
187-
188-
#search-input:focus {
189-
outline: none;
190-
border-color: #3776ab;
191-
box-shadow: 0 4px 12px rgba(55, 118, 171, 0.2);
192-
}
193199

194200
.controls button {
195201
background: #3776ab;

Lib/profiling/sampling/flamegraph.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,16 +281,16 @@ document.addEventListener("DOMContentLoaded", function () {
281281

282282
// Update search input style based on results
283283
if (matchCount > 0) {
284-
searchInput.style.borderColor = "#28a745";
285-
searchInput.style.boxShadow = "0 0 0 3px rgba(40, 167, 69, 0.1)";
284+
searchInput.style.borderColor = "rgba(40, 167, 69, 0.8)";
285+
searchInput.style.boxShadow = "0 6px 20px rgba(40, 167, 69, 0.2)";
286286
} else {
287-
searchInput.style.borderColor = "#dc3545";
288-
searchInput.style.boxShadow = "0 0 0 3px rgba(220, 53, 69, 0.1)";
287+
searchInput.style.borderColor = "rgba(220, 53, 69, 0.8)";
288+
searchInput.style.boxShadow = "0 6px 20px rgba(220, 53, 69, 0.2)";
289289
}
290290
} else {
291291
// Reset search input style
292-
searchInput.style.borderColor = "#e9ecef";
293-
searchInput.style.boxShadow = "0 2px 4px rgba(0, 0, 0, 0.06)";
292+
searchInput.style.borderColor = "rgba(255, 255, 255, 0.2)";
293+
searchInput.style.boxShadow = "0 4px 12px rgba(0, 0, 0, 0.1)";
294294
}
295295
}
296296

Lib/profiling/sampling/flamegraph_template.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
<div class="header-content">
1616
<div class="python-logo"><!-- INLINE_LOGO --></div>
1717
<div class="header-text">
18-
<h1>Python Performance Flamegraph</h1>
18+
<h1>Tachyon Profiler Performance Flamegraph</h1>
1919
<div class="subtitle">
2020
Interactive visualization of function call performance
2121
</div>
2222
</div>
23+
<div class="header-search">
24+
<input type="text" id="search-input" placeholder="🔍 Search functions..." />
25+
</div>
2326
</div>
2427
</div>
2528

@@ -61,9 +64,6 @@ <h1>Python Performance Flamegraph</h1>
6164
<button onclick="exportSVG()" class="secondary">📁 Export SVG</button>
6265
<button onclick="toggleLegend()">🔥 Heat Map Legend</button>
6366
</div>
64-
<div class="search-container">
65-
<input type="text" id="search-input" placeholder="🔍 Search functions..." />
66-
</div>
6767
</div>
6868

6969
<button id="show-info-btn" title="Show navigation guide">&#8505;</button>

0 commit comments

Comments
 (0)