Skip to content

Commit d59edbd

Browse files
committed
Add requirements.txt file for tools
1 parent 8f57e63 commit d59edbd

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

tools/plot_poll_rate.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/usr/bin/env python3
2+
#
3+
# Utility script to plot ReFrame's polling rate.
4+
#
5+
# Usage:
6+
# ./plot_poll_rate.py LOGFILE
7+
#
8+
# This produces a diagram of the polling rate.
9+
#
10+
# ./plot_poll_rate.py LOGFILE...
11+
#
12+
# This produces a histogram of the polling counts from different ReFrame
13+
# processes.
14+
#
15+
# The log files must contain `debug2` information.
216

317
import io
418
import re
@@ -44,8 +58,10 @@ def plot_poll_histogram(logfiles):
4458
df.with_columns(pl.lit(filename).alias('filename'))
4559
)
4660

47-
fig = px.histogram(pl.concat(dataframes).sort('timestamp'), x='timestamp', color='filename', nbins=100)
61+
fig = px.histogram(pl.concat(dataframes).sort('timestamp'), x='timestamp',
62+
color='filename', nbins=100)
4863
fig.show()
64+
# fig.write_image('hist.svg')
4965

5066

5167
def main():

tools/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
kaleido
2+
matplotlib
3+
polars
4+
plotly-express

0 commit comments

Comments
 (0)