Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions thicket/thicket.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,30 @@ def from_timemory(
**kwargs,
)

@staticmethod
def from_perfflowaspect(
filename, intersection=False, fill_perfdata=True, disable_tqdm=False
):
"""Create a GraphFrame using hatchet's PerfFlowAspect reader and use
its attributes to make a new thicket.

Arguments:
filename (str): name of a PerfFlowAspect output file in .pfw format
intersection (bool): whether to perform intersection or union (default)
fill_perfdata (bool): whether to fill missing performance data with NaNs
disable_tqdm (bool): whether to display tqdm progress bar

Returns:
(thicket): new thicket containing PerfFlowAspect profile data
"""
return Thicket.reader_dispatch(
GraphFrame.from_perfflowaspect,
intersection,
fill_perfdata,
disable_tqdm,
filename,
)

@staticmethod
def from_literal(graph_dict):
"""Create a Thicket from a list of dictionarires.
Expand Down
Loading