MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / initializePerformanceMonitoring

Function initializePerformanceMonitoring

codeclash/viewer/static/js/app.js:172–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170
171// Performance monitoring
172function initializePerformanceMonitoring() {
173 // Log page load time
174 window.addEventListener("load", function () {
175 const loadTime = performance.now();
176 console.log(`Page loaded in ${loadTime.toFixed(2)}ms`);
177
178 // Count elements for performance insight
179 const messageCount = document.querySelectorAll(".message-block").length;
180 const foldoutCount = document.querySelectorAll("details").length;
181
182 console.log(
183 `Rendered ${messageCount} messages and ${foldoutCount} foldouts`,
184 );
185 });
186}
187
188// Message expand/collapse functionality
189function expandMessage(clickedElement) {

Callers 1

app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected