Skip to content

Commit 89ea833

Browse files
chore: log native binding state in debug mode
1 parent 3655d7e commit 89ea833

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { checkV8Flags } from "./introspection";
22
import { MongoMeasurement } from "./mongoMeasurement";
33
import native_core from "./native_core";
4+
import { logDebug } from "./utils";
45

56
declare const __VERSION__: string;
67

@@ -33,6 +34,7 @@ export function getCodspeedRunnerMode(): CodSpeedRunnerMode {
3334
}
3435

3536
export const setupCore = () => {
37+
logDebug(`Native core is ${native_core.isBound ? "bound" : "not bound"}`);
3638
native_core.InstrumentHooks.setIntegration("codspeed-node", __VERSION__);
3739
linuxPerf.start();
3840
checkV8Flags();

0 commit comments

Comments
 (0)