Skip to content

Commit 3b744a0

Browse files
author
Shane Snyder
committed
add partial_flag and uid to job_stats
1 parent 2c7d24e commit 3b744a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

darshan-util/pydarshan/darshan/cli/job_stats.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def process_logfile(log_path, mod, filter_patterns, filter_mode):
4747
dict_acc_rec['log_file'] = log_path.split('/')[-1]
4848
dict_acc_rec['exe'] = report.metadata['exe']
4949
dict_acc_rec['job_id'] = report.metadata['job']['jobid']
50+
dict_acc_rec['uid'] = report.metadata['job']['uid']
5051
dict_acc_rec['nprocs'] = report.metadata['job']['nprocs']
5152
dict_acc_rec['start_time'] = report.metadata['job']['start_time_sec']
5253
dict_acc_rec['end_time'] = report.metadata['job']['end_time_sec']
@@ -55,6 +56,7 @@ def process_logfile(log_path, mod, filter_patterns, filter_mode):
5556
dict_acc_rec['time_by_slowest'] = acc_rec.derived_metrics.agg_time_by_slowest
5657
dict_acc_rec['total_bytes'] = acc_rec.derived_metrics.total_bytes
5758
dict_acc_rec['total_files'] = acc_rec.derived_metrics.category_counters[0].count
59+
dict_acc_rec['partial_flag'] = report.modules[mod]['partial_flag']
5860
df = pd.DataFrame.from_dict([dict_acc_rec])
5961
return df
6062
except Exception as e:
@@ -144,6 +146,7 @@ def rich_print(df, mod, order_by):
144146
column.style = column.header_style = column.footer_style = "bold cyan"
145147
for _, row in df.iterrows():
146148
job_str = f"[bold]job id[/bold]: {row['job_id']}\n"
149+
job_str = f"[bold]uid[/bold]: {row['uid']}\n"
147150
job_str += f"[bold]nprocs[/bold]: {row['nprocs']}\n"
148151
job_str += f"[bold]start time[/bold]: {datetime.fromtimestamp(row['start_time']).strftime('%m/%d/%Y %H:%M:%S')}\n"
149152
job_str += f"[bold]end time[/bold]: {datetime.fromtimestamp(row['end_time']).strftime('%m/%d/%Y %H:%M:%S')}\n"

0 commit comments

Comments
 (0)