jade.resource_monitor.StatsViewerBase

class jade.resource_monitor.StatsViewerBase(events, event_name)[source]

Bases: ABC

Base class for viewing statistics

Methods

get_dataframe(batch)

Return a dataframe for the batch's stats.

get_printable_value(field, val)

get_stats_summary()

Return a list of objects describing summaries of all stats.

iter_batch_names()

Return an iterator over the batch names.

metric()

Return the metric.

plot_to_file(output_dir)

Make plots of resource utilization for one node.

show_stat_totals(stats_to_total)

Print a table that shows statistic totals by batch.

show_stats([show_all_timestamps])

Show statistics

get_dataframe(batch)[source]

Return a dataframe for the batch’s stats.

Parameters:

batch (str)

Return type:

pd.DataFrame

iter_batch_names()[source]

Return an iterator over the batch names.

plot_to_file(output_dir)[source]

Make plots of resource utilization for one node.

Parameters:

directory (str) – output directory

abstract static metric()[source]

Return the metric.

show_stats(show_all_timestamps=True)[source]

Show statistics

get_stats_summary()[source]

Return a list of objects describing summaries of all stats.

Returns:

list of dicts

Return type:

list

show_stat_totals(stats_to_total)[source]

Print a table that shows statistic totals by batch.

Parameters:

stats_to_total (list)