|
PyTimeloop
|
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. | |
| parse_stats_stream (io.TextIOBase stream) | |
| Parse a stream of 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. | |
Variables | |
| LEVEL_PATTERN = re.compile("=== (?P<level>.*) ===") | |
| 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.
| 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.
| pytimeloop.timeloopfe.v4.output_parsing.parse_stats_stream | ( | io.TextIOBase | stream | ) |
Parse a stream of stats file from Timeloop.
Args: stream: the stream containing the stats
Returns: Tuple[int, int, float, dict]: The cycles, computes, percent utilization, and energy.
| 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.
| pytimeloop.timeloopfe.v4.output_parsing.LEVEL_PATTERN = re.compile("=== (?P<level>.*) ===") |