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

Function getDiffColors

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

Source from the content-addressed store, hash-verified

522}
523
524function getDiffColors() {
525 const style = getComputedStyle(document.documentElement);
526 return {
527 elided: style.getPropertyValue('--diff-elided').trim(),
528 new: style.getPropertyValue('--diff-new').trim(),
529 neutral: style.getPropertyValue('--diff-neutral').trim(),
530 regressionDeep: style.getPropertyValue('--diff-regression-deep').trim(),
531 regressionMedium: style.getPropertyValue('--diff-regression-medium').trim(),
532 regressionLight: style.getPropertyValue('--diff-regression-light').trim(),
533 regressionVerylight: style.getPropertyValue('--diff-regression-verylight').trim(),
534 improvementDeep: style.getPropertyValue('--diff-improvement-deep').trim(),
535 improvementMedium: style.getPropertyValue('--diff-improvement-medium').trim(),
536 improvementLight: style.getPropertyValue('--diff-improvement-light').trim(),
537 improvementVerylight: style.getPropertyValue('--diff-improvement-verylight').trim(),
538 };
539}
540
541function getDiffColorForNode(node, diffColors) {
542 if (isShowingElided) {

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…