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

Function intensityToClass

Lib/profiling/sampling/_heatmap_assets/heatmap_shared.js:24–27  ·  view source on GitHub ↗
(intensity)

Source from the content-addressed store, hash-verified

22const HEAT_CLASS_NAMES = ['cold', 'cool', 'mild', 'warm', 'hot', 'very-hot', 'intense', 'extreme'];
23
24function intensityToClass(intensity) {
25 const level = intensityToHeatLevel(intensity);
26 return level === 0 ? null : HEAT_CLASS_NAMES[level - 1];
27}
28
29// ============================================================================
30// Color Mapping (Intensity to Heat Color)

Callers 1

buildScrollMarkerFunction · 0.85

Calls 1

intensityToHeatLevelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…