(data)
| 985 | let isShowingElided = false; |
| 986 | |
| 987 | function setupElidedToggle(data) { |
| 988 | const stats = data.stats || {}; |
| 989 | const elidedCount = stats.elided_count || 0; |
| 990 | const elidedFlamegraph = stats.elided_flamegraph; |
| 991 | |
| 992 | if (!elidedCount || !elidedFlamegraph) { |
| 993 | return; |
| 994 | } |
| 995 | |
| 996 | elidedFlamegraphData = resolveStringIndices(elidedFlamegraph, elidedFlamegraph.strings); |
| 997 | |
| 998 | const toggleElided = document.getElementById('toggle-elided'); |
| 999 | if (toggleElided) { |
| 1000 | toggleElided.style.display = 'flex'; |
| 1001 | |
| 1002 | toggleElided.onclick = function() { |
| 1003 | isShowingElided = !isShowingElided; |
| 1004 | updateToggleUI('toggle-elided', isShowingElided); |
| 1005 | updateFlamegraphView(); |
| 1006 | }; |
| 1007 | } |
| 1008 | } |
| 1009 | |
| 1010 | // ============================================================================ |
| 1011 | // Hotspot Stats |
no test coverage detected
searching dependent graphs…