Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address code review
  • Loading branch information
pablogsal committed Sep 25, 2025
commit 1e9628941d874b22d09ed536b161b4c89d46edd2
2 changes: 1 addition & 1 deletion Lib/profiling/sampling/flamegraph.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ body {
}

.thread-filter-wrapper {
display: inline-flex;
display: none;
align-items: center;
margin-left: 16px;
background: white;
Expand Down
10 changes: 3 additions & 7 deletions Lib/profiling/sampling/flamegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,6 @@ function initThreadFilter(data) {
const threadWrapper = document.querySelector('.thread-filter-wrapper');

if (!threadFilter || !data.threads) {
// Hide thread filter if no thread data
if (threadWrapper) {
threadWrapper.style.display = 'none';
}
return;
}

Expand All @@ -555,9 +551,9 @@ function initThreadFilter(data) {
threadFilter.appendChild(option);
});

// Hide filter if only one thread or no threads
if (threads.length <= 1 && threadWrapper) {
threadWrapper.style.display = 'none';
// Show filter if more than one thread
if (threads.length > 1 && threadWrapper) {
threadWrapper.style.display = 'inline-flex';
}
}

Expand Down
2 changes: 1 addition & 1 deletion Lib/profiling/sampling/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def main():
"--mode",
choices=["wall", "cpu", "gil"],
default="wall",
help="Sampling mode: wall (all threads), cpu (only CPU-running threads), gil (only GIL-holding threads)",
help="Sampling mode: wall (all threads), cpu (only CPU-running threads), gil (only GIL-holding threads) (default: wall)",
)

# Output format selection
Expand Down
Loading