Skip to content

Commit 967f1f6

Browse files
author
shivenmian
committed
refactor: enable tracing + runtimeName
1 parent ffe0eaf commit 967f1f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/V8JsiRuntime.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,11 @@ void V8Runtime::initializeV8() {
487487
}
488488

489489
V8Runtime::V8Runtime(V8RuntimeArgs &&args) : args_(std::move(args)) {
490+
args_.flags.enableMessageTracing = true;
491+
args_.flags.enableGCTracing = true;
492+
args_.flags.enableJitTracing = true;
493+
args_.flags.trackGCObjectStats = true;
494+
490495
initializeTracing();
491496
initializeV8();
492497

@@ -541,6 +546,8 @@ V8Runtime::V8Runtime(V8RuntimeArgs &&args) : args_(std::move(args)) {
541546
}
542547
#endif
543548

549+
TRACEV8RUNTIME_VERBOSE(TraceLoggingString(args_.debuggerRuntimeName.c_str(), "debuggerRuntimeName"));
550+
544551
createHostObjectConstructorPerContext();
545552
}
546553

0 commit comments

Comments
 (0)