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

Function makeRect

internal/driver/html/stacks.js:422–430  ·  view source on GitHub ↗
(cl, x, y, w, h)

Source from the content-addressed store, hash-verified

420 const src = stacks.Sources[srcIndex];
421
422 function makeRect(cl, x, y, w, h) {
423 const r = document.createElement('div');
424 r.style.left = x+'px';
425 r.style.top = y+'px';
426 r.style.width = w+'px';
427 r.style.height = h+'px';
428 r.classList.add(cl);
429 return r;
430 }
431
432 // Background
433 const w = box.width - 1; // Leave 1px gap

Callers 1

drawBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…