Skip to content

Commit 644fb1b

Browse files
committed
Fix timeline instrumentation in cpp code
1 parent 7ac389f commit 644fb1b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test-app/runtime/src/main/cpp/Runtime.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bool tns::LogEnabled = true;
4040
SimpleAllocator g_allocator;
4141

4242
void SIGABRT_handler(int sigNumber) {
43-
throw NativeScriptException("JNI Exception occurred (SIGABRT).\n=======\nCheck the 'adb logcat' for additional information about the error.\n=======\n");
43+
throw NativeScriptException("JNI Exception occurred (SIGABRT).\n=======\nCheck the 'adb logcat' for additional information about the error.\n=======\n");
4444
}
4545

4646
void Runtime::Init(JavaVM* vm, void* reserved) {
@@ -53,7 +53,7 @@ void Runtime::Init(JavaVM* vm, void* reserved) {
5353
JEnv::Init(s_jvm);
5454
}
5555

56-
if(m_androidVersion > 25) {
56+
if (m_androidVersion > 25) {
5757
// handle SIGABRT only on API level > 25 as the handling is not so efficient in older versions
5858
struct sigaction action;
5959
action.sa_handler = SIGABRT_handler;
@@ -508,10 +508,9 @@ Isolate* Runtime::PrepareV8Runtime(const string& filesPath, const string& native
508508
InitializeV8();
509509
}
510510

511-
tns::instrumentation::Frame isolateFrame("Isolate.New");
511+
tns::instrumentation::Frame isolateFrame;
512512
auto isolate = Isolate::New(create_params);
513513
isolateFrame.log("Isolate.New");
514-
isolateFrame.disable();
515514

516515
Isolate::Scope isolate_scope(isolate);
517516
HandleScope handleScope(isolate);

0 commit comments

Comments
 (0)