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: Rafael Weingartner-Ortner <[email protected]>
  • Loading branch information
RafaelWO committed Aug 3, 2024
1 parent 260b8d5 commit c1e525d
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 c1e525d

Please sign in to comment.