Skip to content

Commit

Permalink
add cpu time to txn stats (#3562)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinthomas-z80 authored Nov 2, 2023
1 parent 2d204bb commit e90aebb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions taskvine/src/tools/vine_plot_txn_log
Original file line number Diff line number Diff line change
Expand Up @@ -822,10 +822,16 @@ class TxnStats(TxnPlot):
print(f"Bytes created: {minitasks_size}")
print(f"Number of temps: {num_temps}")
print(f"Bytes created: {temps_size}")
times = []
for l in manager.worker_lifetime.values():
times.append(l["DISCONNECTION"] - l["CONNECTION"])
cpu_time = sum(times)
print(f"Worker CPU Time (h): {round(cpu_time/60/60, 2)}")
print("-----------------------------------------")
print()



if __name__ == "__main__":

parser = argparse.ArgumentParser(prog="vine_example_blast.py",
Expand Down

0 comments on commit e90aebb

Please sign in to comment.