Sha256: ffd1743a3f8754039ad25fff986ed4eaace2585d088cc27a34f464d381c5a076
Contents?: true
Size: 570 Bytes
Versions: 15
Compression:
Stored size: 570 Bytes
Contents
<div id=wrapper> <iframe id=speedscope-iframe></iframe> </div> <script type="text/javascript"> const graph = <%= raw @flamegraph %> const json = JSON.stringify(graph) const blob = new Blob([json], { type: 'text/plain' }) const objUrl = encodeURIComponent(URL.createObjectURL(blob)) const iframe = document.getElementById('speedscope-iframe') const baseUrl = window.location.origin; const iframeUrl = baseUrl + '/rails_mini_profiler/speedscope/index.html#profileURL=' + objUrl + '&title=' + 'Flamegraph'; iframe.setAttribute('src', iframeUrl) </script>
Version data entries
15 entries across 15 versions & 1 rubygems