Skip to content

Commit

Permalink
flamegraph: count should be an int, not a float (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan authored May 21, 2022
1 parent c10b481 commit c7d1288
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hatchet/graphframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,9 @@ def to_flamegraph(self, metric=None, name="name", rank=0, thread=0, threshold=0.
df_index = hnode

folded_stack = (
folded_stack + str(self.dataframe.loc[df_index, metric]) + "\n"
folded_stack
+ str(round(self.dataframe.loc[df_index, metric]))
+ "\n"
)

return folded_stack
Expand Down

0 comments on commit c7d1288

Please sign in to comment.