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

Function toggleColorMode

Lib/profiling/sampling/_heatmap_assets/heatmap.js:235–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233}
234
235function toggleColorMode() {
236 colorMode = colorMode === 'self' ? 'cumulative' : 'self';
237 applyLineColors();
238
239 updateToggleUI('toggle-color-mode', colorMode === 'cumulative');
240
241 if (coldCodeHidden) {
242 applyHotFilter();
243 }
244
245 buildScrollMarker();
246}
247
248// ============================================================================
249// Initialization

Callers

nothing calls this directly

Calls 4

applyLineColorsFunction · 0.85
updateToggleUIFunction · 0.85
applyHotFilterFunction · 0.85
buildScrollMarkerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…