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

Function getHeatLevel

Lib/profiling/sampling/_flamegraph_assets/flamegraph.js:508–513  ·  view source on GitHub ↗
(percentage)

Source from the content-addressed store, hash-verified

506];
507
508function getHeatLevel(percentage) {
509 for (const [threshold, level] of HEAT_THRESHOLDS) {
510 if (percentage >= threshold) return level;
511 }
512 return 1;
513}
514
515function getHeatColors() {
516 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…