Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add pattern detection #93

Merged
merged 9 commits into from
Nov 14, 2023
Merged

feature: add pattern detection #93

merged 9 commits into from
Nov 14, 2023

Conversation

ocnkr
Copy link
Contributor

@ocnkr ocnkr commented Apr 6, 2023

No description provided.

pipit/trace.py Outdated Show resolved Hide resolved
pipit/trace.py Outdated Show resolved Hide resolved
pipit/trace.py Outdated Show resolved Hide resolved
pipit/trace.py Outdated Show resolved Hide resolved
pipit/trace.py Outdated
# the given event. we will only investigate
# this portion of the data.
first_loop_enter = self.events[
(self.events["Name"] == start_event)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this and line 716 seem like repeated filtering/computation since we already do it once on line 701. maybe we could store this "iterations" filter in a variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

& (self.events["Process"] == process)
].index[-1]

df = self.events.iloc[first_loop_enter + 1 : last_loop_leave]
Copy link
Collaborator

Choose a reason for hiding this comment

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

any reason why we don't include first_loop_enter and last_loop_leave themselves?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't remember but I will think about it and add comments

@bhatele bhatele merged commit c6491fd into develop Nov 14, 2023
8 checks passed
@bhatele bhatele deleted the pattern-detection branch November 14, 2023 23:50
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.

3 participants