-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "include/export_thread_logbypass.h" | ||
|
||
#include "environment_data.h" | ||
#include "logbypass/log.h" | ||
|
||
namespace xprofiler { | ||
using Nan::FunctionCallbackInfo; | ||
using Nan::True; | ||
using v8::Value; | ||
|
||
void RunLogBypass(const FunctionCallbackInfo<Value>& info) { | ||
EnvironmentData* env_data = EnvironmentData::GetCurrent(info); | ||
StartLogThread(env_data); | ||
info.GetReturnValue().Set(True()); | ||
} | ||
|
||
} // namespace xprofiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef XPROFILER_SRC_JSAPI_THREAD_LOGBYPASS_H | ||
#define XPROFILER_SRC_JSAPI_THREAD_LOGBYPASS_H | ||
|
||
#include "nan.h" | ||
|
||
namespace xprofiler { | ||
void RunLogBypass(const Nan::FunctionCallbackInfo<v8::Value>& info); | ||
} | ||
|
||
#endif /* XPROFILER_SRC_JSAPI_THREAD_LOGBYPASS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters