Skip to content

Commit

Permalink
Separating result processor out from profiler.py without changing the…
Browse files Browse the repository at this point in the history
… behaviors of current profile.py
  • Loading branch information
jchen351 committed Jan 6, 2025
1 parent c117213 commit 0509b70
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ def group_node_results(sess_time):

return lines


def process_results(profile_file, args):
profile_records = load_profile_json(profile_file)

Expand All @@ -347,6 +348,7 @@ def process_results(profile_file, args):

return lines


if __name__ == "__main__":
arguments = parse_arguments()
print("Arguments", arguments)
Expand All @@ -360,4 +362,4 @@ def process_results(profile_file, args):
results = process_results(profile_file, arguments)

for line in results:
print(line)
print(line)

0 comments on commit 0509b70

Please sign in to comment.