Skip to content

Commit

Permalink
Some comments and fixing clippy bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakayorihiro committed Nov 18, 2024
1 parent df7d24f commit 2d99688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calyx-opt/src/passes/profiler_instrumentation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl Visitor for ProfilerInstrumentation {
guard.clone(),
);
group_name_assign_and_cell.push((
parent_group.clone(),
*parent_group,
probe_asgn,
probe_cell,
));
Expand Down Expand Up @@ -178,7 +178,7 @@ impl Visitor for ProfilerInstrumentation {
Guard::True,
);
group_name_assign_and_cell.push((
invoker_group.clone(),
*invoker_group,
probe_asgn,
probe_cell,
));
Expand Down
2 changes: 2 additions & 0 deletions tools/profiler/new-parse-vcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ def create_tree(timeline_map):
path_dict = {} # stack list string --> list of node ids
path_prefixes_dict = {} # stack list string --> list of node ids
stack_list = []
# collect all of the stacks from the list. (i.e. "flatten" the timeline map values.)
for sl in timeline_map.values():
for s in sl:
if s not in stack_list:
Expand Down Expand Up @@ -437,6 +438,7 @@ def create_output(timeline_map, out_dir):
for stack in stacks:
flame_out.write(f"{stack} {stacks[stack]}\n")

# probably wise to not have a billion dot files.
if len(timeline_map) > TREE_PICTURE_LIMIT:
print(f"Simulation exceeds {TREE_PICTURE_LIMIT} cycles, skipping trees...")
return
Expand Down

0 comments on commit 2d99688

Please sign in to comment.