in de/cli.py [0:0]
def page_chunks(patterns):
paths = []
for pattern in patterns:
if "*" in pattern:
paths.extend(Path().rglob(pattern))
else:
paths.append(Path(pattern))
uncompressed_bytes, num_values = zip(*get_page_chunk_sizes(paths))
fig = go.Figure()
fig.add_trace(
go.Histogram(
x=uncompressed_bytes,
nbinsx=100,
name="Uncompressed Page Sizes",
marker_color="blue",
opacity=0.75,
)
)
fig.update_layout(
title="Distribution of Uncompressed Page Sizes",
xaxis_title="Value",
yaxis_title="Frequency",
barmode="overlay",
)
fig.update_xaxes(tickformat=".2s")
fig.show()