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

Function init

Doc/_static/profiling-sampling-visualization.js:1148–1156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1146 // ============================================================================
1147
1148 function init() {
1149 // If trace data hasn't been injected yet (local dev), don't initialize
1150 if (!DEMO_SIMPLE) return;
1151
1152 const appContainer = document.getElementById("sampling-profiler-viz");
1153 if (appContainer) {
1154 new SamplingVisualization(appContainer);
1155 }
1156 }
1157
1158 if (document.readyState === "loading") {
1159 document.addEventListener("DOMContentLoaded", init);

Calls 1

getElementByIdMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…