MCPcopy Create free account
hub / github.com/google/pprof / updateButtons

Function updateButtons

internal/driver/html/common.js:655–665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

653 }
654
655 function updateButtons() {
656 const enable = (search.value != '' || getSelection().size != 0);
657 if (buttonsEnabled == enable) return;
658 buttonsEnabled = enable;
659 for (const id of ['focus', 'ignore', 'hide', 'show', 'show-from']) {
660 const link = document.getElementById(id);
661 if (link != null) {
662 link.classList.toggle('disabled', !enable);
663 }
664 }
665 }
666
667 // Initialize button states
668 updateButtons();

Callers 5

handleSearchFunction · 0.85
selectMatchingFunction · 0.85
toggleSvgSelectFunction · 0.85
handleTopClickFunction · 0.85
viewerFunction · 0.85

Calls 1

getSelectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…