File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,9 @@ function createPerformanceSession(
172172 return ;
173173 }
174174
175- // Read existing JSON (assumed to exist & non-empty by your workflow)
175+ // Load the baseline JSON used for both DUMP and CHECK modes.
176+ // - In DUMP mode: merge new data with existing entries so multiple methods remain grouped.
177+ // - In CHECK mode: compare current results against stored baselines.
176178 const raw = fs . readFileSync ( FILE_PATH , 'utf8' ) ;
177179 const perfRegressionJson : Record < string , PerfRegressionEntry > = JSON . parse ( raw ) ;
178180
@@ -222,6 +224,7 @@ function createPerformanceSession(
222224 'Please provide the method name you are proving (pass it to start(..., methodName)).'
223225 ) ;
224226 }
227+
225228 if ( ! Object . prototype . hasOwnProperty . call ( cs , methodName ) ) {
226229 throw new Error (
227230 `The method "${ methodName } " does not exist in the analyzed constraint systems for "${ programName } ". ` +
You can’t perform that action at this time.
0 commit comments