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

Function getSampleCount

Lib/profiling/sampling/_heatmap_assets/heatmap.js:132–140  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

130// ============================================================================
131
132function getSampleCount(line) {
133 let text;
134 if (colorMode === 'self') {
135 text = line.querySelector('.line-samples-self')?.textContent.trim().replace(/,/g, '');
136 } else {
137 text = line.querySelector('.line-samples-cumulative')?.textContent.trim().replace(/,/g, '');
138 }
139 return parseInt(text) || 0;
140}
141
142// ============================================================================
143// Scroll Minimap

Callers 1

buildScrollMarkerFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…