Skip to content

Commit

Permalink
Update varats-core/varats/report/hot_functions_report.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Böhm <[email protected]>
  • Loading branch information
vulder and boehmseb authored Aug 19, 2024
1 parent ee31f67 commit 881be9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion varats-core/varats/report/hot_functions_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def hot_functions(self, threshold=2) -> tp.List[XRayFunctionWrapper]:
)
# The total time tracked only includes time spend in the top n
# (MAX_TRACK_FUNCTIONS) functions
total_time_tracked = self.__function_data["sum"].sum()
total_time_tracked = self.__function_data["sum"].max()

if threshold == 0:
sum_time_cutoff = 0
Expand Down

0 comments on commit 881be9e

Please sign in to comment.