Skip to content

Commit

Permalink
✨ Show time duration in stats modal
Browse files Browse the repository at this point in the history
Signed-off-by: RafaelWO <[email protected]>
  • Loading branch information
RafaelWO authored and pablogsal committed Aug 9, 2024
1 parent bffcd04 commit 9044940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/memray/reporters/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ <h5 class="modal-title" id="statsModalLabel">Memray run stats</h5>
Command line: <code>{{ metadata.command_line }}</code><br>
Start time: <span id="stats-start-time"> {{ metadata.start_time }}</span><br>
End time: <span id="stats-end-time"> {{ metadata.end_time }}</span><br>
Duration: {{ metadata.end_time - metadata.start_time }}<br>
Total number of allocations: {{ metadata.total_allocations }}<br>
Total number of frames seen: {{ metadata.total_frames }}<br>
Peak memory usage: {{ metadata.peak_memory | filesizeformat(true) }}<br>
Expand Down

0 comments on commit 9044940

Please sign in to comment.