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

Function resizeChart

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

Source from the content-addressed store, hash-verified

150}
151
152function resizeChart() {
153 if (window.flamegraphChart && window.flamegraphData) {
154 const chartArea = document.querySelector('.chart-area');
155 if (chartArea) {
156 window.flamegraphChart.width(chartArea.clientWidth - 32);
157 d3.select("#chart").datum(window.flamegraphData).call(window.flamegraphChart);
158 }
159 }
160}
161
162function toggleSection(sectionId) {
163 const section = document.getElementById(sectionId);

Callers 2

toggleSidebarFunction · 0.85
initSidebarResizeFunction · 0.85

Calls 3

widthMethod · 0.45
callMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…