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

Trace: Filter #62

Open
wants to merge 81 commits into
base: develop
Choose a base branch
from
Open

Trace: Filter #62

wants to merge 81 commits into from

Conversation

hsirkar
Copy link
Collaborator

@hsirkar hsirkar commented Feb 17, 2023

Basic filter:

ping_pong = pp.Trace.from_otf2("../../pipit/tests/data/ping-pong-otf2/")
ping_pong.filter("Process", "==", 0)

Compound filter:

from pipit.selection import Filter

f1 = Filter("Timestamp (ns)", "between", ["130.52 ms", "136.57 ms"])
f2 = Filter("Name", "in", ["MPI_Send", "MPI_Recv"])
f3 = Filter("Process", "==", 0)

ping_pong.filter((f1 & f2) | f3)

Trim:

ping_pong.trim(1e5, 1e6)

Features:

  • Returns new Trace instance containing copy of events DataFrame
  • Parses timestamps ("130.52 ms" --> 1.3052e+8)
  • Unit tests for all functions

@hsirkar hsirkar changed the title Trace: query Trace: query/filter API Feb 24, 2023
@hsirkar hsirkar changed the title Trace: query/filter API Trace: Query/Filter API Feb 25, 2023
@hsirkar hsirkar changed the title Trace: Query/Filter API Trace: filter Mar 7, 2023
@hsirkar hsirkar changed the title Trace: Query Trace: Filter Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants