bundle.perf_report.extractor.cprofile¶
cProfile .prof file extraction.
Classes¶
A single function entry from a .prof file. |
|
All records extracted from one .prof file. |
|
Extract profiling data from .prof files produced by cProfile. |
Module Contents¶
- class bundle.perf_report.extractor.cprofile.CProfileRecord[source]¶
A single function entry from a .prof file.
- class bundle.perf_report.extractor.cprofile.CProfileData[source]¶
All records extracted from one .prof file.
- prof_path: pathlib.Path¶
- records: list[CProfileRecord] = []¶
- class bundle.perf_report.extractor.cprofile.CProfileExtractor[source]¶
Extract profiling data from .prof files produced by cProfile.
- static extract(prof_path: pathlib.Path) CProfileData[source]¶
Parse a single .prof file and return structured data.
- static extract_all(directory: pathlib.Path) list[CProfileData][source]¶
Recursively find and extract all .prof files in a directory.