Skip to content

Conversation

@hsirkar
Copy link
Contributor

@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.

4 participants