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

Function toggleClass

internal/driver/html/stacks.js:504–511  ·  view source on GitHub ↗
(src, cl, value)

Source from the content-addressed store, hash-verified

502
503 // Adds or removes cl from classList of all elements for the specified source.
504 function toggleClass(src, cl, value) {
505 const list = elems.get(src);
506 if (list) {
507 for (const elem of list) {
508 elem.classList.toggle(cl, value);
509 }
510 }
511 }
512
513 // fitText sets text and font-size clipped to the specified width w.
514 function fitText(t, avail, textList) {

Callers 5

hiliteFunction · 0.85
showActionMenuFunction · 0.85
hideActionMenuFunction · 0.85
handleEnterFunction · 0.85
handleLeaveFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…