File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ export type {
6868 SetupInstrumentsRequestBody ,
6969 SetupInstrumentsResponse ,
7070} from "./generated/openapi" ;
71- export type { BuildMode } ;
7271export { getV8Flags , tryIntrospect } from "./introspection" ;
7372export { optimizeFunction , optimizeFunctionSync } from "./optimization" ;
7473export * from "./utils" ;
7574export * from "./walltime" ;
75+ export type { BuildMode } ;
7676export const InstrumentHooks = native_core . InstrumentHooks ;
Original file line number Diff line number Diff line change 11import {
2+ getCodspeedRunnerMode ,
23 InstrumentHooks ,
34 mongoMeasurement ,
45 optimizeFunction ,
@@ -16,7 +17,8 @@ export function setupCodspeedAnalysisBench(
1617
1718class AnalysisBenchRunner extends BaseBenchRunner {
1819 protected getModeName ( ) : string {
19- return "analysis mode" ;
20+ const runnerMode = getCodspeedRunnerMode ( ) ;
21+ return `${ runnerMode } mode` ;
2022 }
2123
2224 private taskCompletionMessage ( ) {
Original file line number Diff line number Diff line change @@ -37,10 +37,7 @@ export default function codspeedPlugin(): Plugin {
3737 if ( mode !== "benchmark" ) {
3838 return false ;
3939 }
40- if (
41- getBuildMode ( ) == "analysis" &&
42- ! InstrumentHooks . isInstrumented ( )
43- ) {
40+ if ( getBuildMode ( ) == "analysis" && ! InstrumentHooks . isInstrumented ( ) ) {
4441 console . warn ( "[CodSpeed] bench detected but no instrumentation found" ) ;
4542 }
4643 return true ;
You can’t perform that action at this time.
0 commit comments