Skip to content

Refactor riker trace parsing#24

Merged
gliargovas merged 11 commits intomainfrom
refactor-riker-trace-parsing
Mar 30, 2023
Merged

Refactor riker trace parsing#24
gliargovas merged 11 commits intomainfrom
refactor-riker-trace-parsing

Conversation

@gliargovas
Copy link
Copy Markdown
Collaborator

No description provided.

@gliargovas gliargovas requested a review from angelhof March 29, 2023 21:29
@gliargovas
Copy link
Copy Markdown
Collaborator Author

@angelhof Tests pass, maybe we can merge here to add stdout printing and directory committing, and create a separate branch for the tracing enhancements we discussed in today's meeting.

Comment thread parallel-orch/trace.py
@@ -67,16 +105,30 @@ def get_lauch_name(trace_item):

## Parse the trace object and gather rw sets for this command
def parse_and_gather_cmd_rw_sets(trace_object) -> Tuple[set, set]:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this refactoring goes toward the right direction but stops a step early :) It would make more sense to break the parse_and_gather to a parse and a gather. The parse takes a trace object and returns a dictionary of path refs (from their id r1, r2 to the actual path ref. Then, the gather_rw_sets takes this dictonary and traverses it completely to find all reads and writes of a command.

@gliargovas gliargovas merged commit 91de89d into main Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants