PyTimeloop
Loading...
Searching...
No Matches
pytimeloop.timeloopfe.v4.output_parsing Namespace Reference

Classes

class  MultipliableDict
 A dictionary that can be multiplied or divided by a scalar. More...
 
class  OutputStats
 A class to store the output statistics from Timeloop. More...
 
class  OutputStatsList
 

Functions

Tuple[int, int, float, dict] parse_stats_file (str path)
 Parse a stats file from Timeloop.
 
dict get_area_from_art (str path)
 Get the area of each component from an ART file.
 
OutputStats parse_timeloop_output ("Specification" spec, str output_dir, str prefix)
 Parse the output of Timeloop.
 

Function Documentation

◆ get_area_from_art()

dict pytimeloop.timeloopfe.v4.output_parsing.get_area_from_art ( str path)

Get the area of each component from an ART file.

Args: path (str): The path to the ART file.

Returns: dict: The area of each component.

◆ parse_stats_file()

Tuple[int, int, float, dict] pytimeloop.timeloopfe.v4.output_parsing.parse_stats_file ( str path)

Parse a stats file from Timeloop.

Args: path (str): The path to the stats file.

Returns: Tuple[int, int, float, dict]: The cycles, computes, percent utilization, and energy.

◆ parse_timeloop_output()

OutputStats pytimeloop.timeloopfe.v4.output_parsing.parse_timeloop_output ( "Specification" spec,
str output_dir,
str prefix )

Parse the output of Timeloop.

Args: spec (Specification): The Timeloop specification. output_dir (str): The output directory. prefix (str): The prefix of the output files.

Returns: OutputStats: The parsed output statistics.