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

Function getHeatColors

Lib/profiling/sampling/_flamegraph_assets/flamegraph.js:515–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513}
514
515function getHeatColors() {
516 const style = getComputedStyle(document.documentElement);
517 const colors = {};
518 for (let i = 1; i <= 8; i++) {
519 colors[i] = style.getPropertyValue(`--heat-${i}`).trim();
520 }
521 return colors;
522}
523
524function getDiffColors() {
525 const style = getComputedStyle(document.documentElement);

Callers 1

createFlamegraphFunction · 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…