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

Function setupLogos

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

Source from the content-addressed store, hash-verified

205// ============================================================================
206
207function setupLogos() {
208 const logo = document.querySelector('.sidebar-logo-img img');
209 if (!logo) return;
210
211 const navbarLogoContainer = document.getElementById('navbar-logo');
212 if (navbarLogoContainer) {
213 const navbarLogo = logo.cloneNode(true);
214 navbarLogoContainer.appendChild(navbarLogo);
215 }
216
217 const favicon = document.createElement('link');
218 favicon.rel = 'icon';
219 favicon.type = 'image/png';
220 favicon.href = logo.src;
221 document.head.appendChild(favicon);
222}
223
224// ============================================================================
225// Status Bar

Callers 1

initFlamegraphFunction · 0.85

Calls 4

getElementByIdMethod · 0.80
createElementMethod · 0.80
cloneNodeMethod · 0.45
appendChildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…