Skip to content

Commit

Permalink
fixup! fixup! fixup! pythongh-100403: Collect GC statistics when --en…
Browse files Browse the repository at this point in the history
…able-pystats is provided
  • Loading branch information
pablogsal committed Jan 12, 2023
1 parent e298f62 commit 346a444
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tools/scripts/generate_gc_stats_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def barplot_with_custom_formatting(ax, data, title, formatter):
formatter = lambda val, pos: f"{val*1000:.0f}ms"
barplot_with_custom_formatting(ax0, running_time_data, "Total running time", formatter)

object_number_data = [np.sum(df[df["generation_number"] == i]["total_objects"]/1000.0) for i in range(3)]
formatter = lambda val, pos: f"{int(val)}*10e3 obj"
object_number_data = [np.sum(df[df["generation_number"] == i]["collected_cycles"]/1000.0) for i in range(3)]
formatter = lambda val, pos: f"{int(val)}e3 obj"
barplot_with_custom_formatting(ax1, object_number_data, "Total object collected", formatter)

obj_percentage_data = get_obj_percentage_data(df)
Expand Down Expand Up @@ -150,7 +150,7 @@ def barplot_with_custom_formatting(ax, data, title, formatter):
names,
(0, len(names) + 1),
"time",
"Objects collected per us",
"Objects collected per ms",
formatter=formatter,
)

Expand Down

0 comments on commit 346a444

Please sign in to comment.