@@ -48,8 +48,11 @@ export declare namespace BenchNode {
4848 isSupported ?( ) : boolean ;
4949 beforeClockTemplate ?( varNames : PluginHookVarNames ) : string [ ] ;
5050 afterClockTemplate ?( varNames : PluginHookVarNames ) : string [ ] ;
51+ onCompleteClock ?( result : BenchmarkResult ) : string [ ] ;
5152 onCompleteBenchmark ?( result : BenchmarkResult ) : void ;
5253 toString ?( ) : string ;
54+ getReport ?( ) : string ;
55+ getResult ?( benchmarkName : string ) : Record < string , any > ;
5356 }
5457
5558 class Suite {
@@ -63,20 +66,31 @@ export declare namespace BenchNode {
6366 isSupported ( ) : boolean ;
6467 beforeClockTemplate ( varNames : PluginHookVarNames ) : string [ ] ;
6568 toString ( ) : string ;
69+ getReport ( ) : string ;
6670 }
6771
6872 class V8GetOptimizationStatus implements Plugin {
6973 isSupported ( ) : boolean ;
70- beforeClockTemplate ( varNames : PluginHookVarNames ) : string [ ] ;
7174 afterClockTemplate ( varNames : PluginHookVarNames ) : string [ ] ;
7275 onCompleteBenchmark ( result : BenchmarkResult ) : void ;
7376 toString ( ) : string ;
77+ getReport ( ) : string ;
78+ getResult ?( benchmarkName : string ) : Record < string , any > ;
7479 }
7580
7681 class V8OptimizeOnNextCallPlugin implements Plugin {
7782 isSupported ( ) : boolean ;
7883 beforeClockTemplate ( varNames : PluginHookVarNames ) : string [ ] ;
7984 toString ( ) : string ;
85+ getReport ( ) : string ;
86+ }
87+
88+ class MemoryPlugin implements Plugin {
89+ isSupported ( ) : boolean ;
90+ beforeClockTemplate ( varNames : PluginHookVarNames ) : string [ ] ;
91+ afterClockTemplate ( varNames : PluginHookVarNames ) : string [ ] ;
92+ onCompleteBenchmark ?( result : BenchmarkResult ) : void ;
93+ toString ( ) : string ;
8094 }
8195}
8296
@@ -91,3 +105,4 @@ export declare class Suite extends BenchNode.Suite {}
91105export declare class V8NeverOptimizePlugin extends BenchNode . V8NeverOptimizePlugin { }
92106export declare class V8GetOptimizationStatus extends BenchNode . V8GetOptimizationStatus { }
93107export declare class V8OptimizeOnNextCallPlugin extends BenchNode . V8OptimizeOnNextCallPlugin { }
108+ export declare class MemoryPlugin extends BenchNode . MemoryPlugin { }
0 commit comments