(sectionId)
| 160 | } |
| 161 | |
| 162 | function toggleSection(sectionId) { |
| 163 | const section = document.getElementById(sectionId); |
| 164 | if (section) { |
| 165 | section.classList.toggle('collapsed'); |
| 166 | // Save state |
| 167 | const collapsedSections = JSON.parse(localStorage.getItem('flamegraph-collapsed-sections') || '{}'); |
| 168 | collapsedSections[sectionId] = section.classList.contains('collapsed'); |
| 169 | localStorage.setItem('flamegraph-collapsed-sections', JSON.stringify(collapsedSections)); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | // Restore theme from localStorage, or use browser preference |
| 174 | function restoreUIState() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…