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

Function details

internal/driver/html/stacks.js:560–573  ·  view source on GitHub ↗
(box)

Source from the content-addressed store, hash-verified

558 }
559
560 function details(box) {
561 // Examples:
562 // 6s (10%)
563 // 6s (10%) │ self 3s (5%)
564 // 6s (10%) │ 12s (20%) 🠆 18s (30%)
565 let result = percentText(box.sumpos - box.sumneg);
566 if (box.self != 0) {
567 result += " │ self " + unitText(box.self);
568 }
569 if (diff && box.sumpos > 0 && box.sumneg > 0) {
570 result += " │ " + diffText(box.sumneg, box.sumpos);
571 }
572 return result;
573 }
574
575 // diffText returns text that displays from and to alongside their percentages.
576 // E.g., 9s (45%) 🠆 10s (50%)

Callers 1

handleEnterFunction · 0.85

Calls 3

percentTextFunction · 0.85
unitTextFunction · 0.85
diffTextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…