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

Function initSpanTooltips

Lib/profiling/sampling/_heatmap_assets/heatmap.js:450–464  ·  view source on GitHub ↗

* Initialize span tooltip handlers

()

Source from the content-addressed store, hash-verified

448 * Initialize span tooltip handlers
449 */
450function initSpanTooltips() {
451 document.addEventListener('mouseover', (e) => {
452 const span = e.target.closest('.instr-span');
453 if (span && specViewEnabled) {
454 showSpanTooltip(span);
455 }
456 });
457
458 document.addEventListener('mouseout', (e) => {
459 const span = e.target.closest('.instr-span');
460 if (span) {
461 hideSpanTooltip();
462 }
463 });
464}
465
466function toggleSpecView() {
467 specViewEnabled = !specViewEnabled;

Callers 1

heatmap.jsFile · 0.85

Calls 2

showSpanTooltipFunction · 0.85
hideSpanTooltipFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…