From c0580a49b9428649e8ae546e795d8c851df4bf43 Mon Sep 17 00:00:00 2001 From: Somesh-Kennedy Date: Thu, 30 Oct 2025 10:45:49 -0500 Subject: [PATCH 1/2] Enhance TimingHandler class documentation comment Added docstring for TimingHandler class, detailing attributes and example data structure. --- scripts/performance/main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/performance/main.py b/scripts/performance/main.py index b8ec14aebe9..9a7d147bb1b 100755 --- a/scripts/performance/main.py +++ b/scripts/performance/main.py @@ -39,6 +39,18 @@ class TimingHandler(logging.Handler): transformations. It collects these records, extracts the timing information and adds it to the test data recorder. + Attributes: + _testRecord (OrderedDict): Current test's timing data collection + enabled (bool): Flag to enable/disable timing collection + + Example timing data structure: + { + 'ConstructionTimer': { + 'build_variables': 0.123, + 'build_constraints': [0.456, 0.789] # Multiple entries for repeated operations + } + } + """ def __init__(self): From 9d36305da555cd2114348ca51b3d49a40dc883c7 Mon Sep 17 00:00:00 2001 From: Somesh-Kennedy Date: Wed, 5 Nov 2025 08:09:33 -0600 Subject: [PATCH 2/2] Remove 'enabled' attribute from class docstring Removed the 'enabled' attribute from the class docstring. --- scripts/performance/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/performance/main.py b/scripts/performance/main.py index 9a7d147bb1b..79069b78020 100755 --- a/scripts/performance/main.py +++ b/scripts/performance/main.py @@ -41,7 +41,6 @@ class TimingHandler(logging.Handler): Attributes: _testRecord (OrderedDict): Current test's timing data collection - enabled (bool): Flag to enable/disable timing collection Example timing data structure: {