Skip to content

Commit

Permalink
fix: image in top of profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
SmiteDeluxe committed Mar 30, 2024
1 parent 7306942 commit 6e3ab4f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
>
<span style="color: {getProfilingItemColor(profilingTopItem)};">{profilingTopItem.value}</span>
</div>
{:else if profilingTopItem.type === 'image'}
<div class="profilingItem">
<img
style="width: {imageWidth}px;"
class="profilingImage"
src={'data:image/' + profilingTopItem.value.format + ';base64,' + profilingTopItem.value.bytes}
alt="profiling histogram"
/>
</div>
{/if}
{/each}
</div>
Expand Down

0 comments on commit 6e3ab4f

Please sign in to comment.