MCPcopy Index your code
hub / github.com/python/cpython / searchForHotspot

Function searchForHotspot

Lib/profiling/sampling/_flamegraph_assets/flamegraph.js:677–692  ·  view source on GitHub ↗
(funcname)

Source from the content-addressed store, hash-verified

675}
676
677function searchForHotspot(funcname) {
678 const searchInput = document.getElementById('search-input');
679 const searchWrapper = document.querySelector('.search-wrapper');
680 if (searchInput) {
681 // Toggle: if already searching for this term, clear it
682 if (searchInput.value.trim() === funcname) {
683 clearSearch();
684 } else {
685 searchInput.value = funcname;
686 if (searchWrapper) {
687 searchWrapper.classList.add('has-value');
688 }
689 performSearch();
690 }
691 }
692}
693
694function initSearchHandlers() {
695 const searchInput = document.getElementById("search-input");

Callers 1

populateStatsFunction · 0.85

Calls 4

clearSearchFunction · 0.85
performSearchFunction · 0.85
getElementByIdMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…