bundle.perf_report.extractor.cprofile ===================================== .. py:module:: bundle.perf_report.extractor.cprofile .. autoapi-nested-parse:: cProfile .prof file extraction. Classes ------- .. autoapisummary:: bundle.perf_report.extractor.cprofile.CProfileRecord bundle.perf_report.extractor.cprofile.CProfileData bundle.perf_report.extractor.cprofile.CProfileExtractor Module Contents --------------- .. py:class:: CProfileRecord A single function entry from a .prof file. .. py:attribute:: file :type: str .. py:attribute:: line_number :type: int .. py:attribute:: function :type: str .. py:attribute:: call_count :type: int .. py:attribute:: total_time :type: float .. py:attribute:: cumulative_time :type: float .. py:class:: CProfileData All records extracted from one .prof file. .. py:attribute:: prof_path :type: pathlib.Path .. py:attribute:: records :type: list[CProfileRecord] :value: [] .. py:property:: name :type: str .. py:property:: total_calls :type: int .. py:class:: CProfileExtractor Extract profiling data from .prof files produced by cProfile. .. py:method:: extract(prof_path: pathlib.Path) -> CProfileData :staticmethod: Parse a single .prof file and return structured data. .. py:method:: extract_all(directory: pathlib.Path) -> list[CProfileData] :staticmethod: Recursively find and extract all .prof files in a directory.