-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6 Notify SamplingProfiler of the main MachineThread
Reviewed By: bnham Differential Revision: D3503444 fbshipit-source-id: a2e9a692cd5badac5a15416844c8497f88021a5e
- Loading branch information
1 parent
4843a90
commit edb9fce
Showing
4 changed files
with
41 additions
and
0 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
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,19 @@ | ||
// Copyright 2004-present Facebook. All Rights Reserved. | ||
|
||
#ifdef WITH_JSC_EXTRA_TRACING | ||
|
||
#include "JSCSamplingProfiler.h" | ||
|
||
#include <JavaScriptCore/API/JSProfilerPrivate.h> | ||
|
||
namespace facebook { | ||
namespace react { | ||
|
||
void initSamplingProfilerOnMainJSCThread(JSGlobalContextRef ctx) { | ||
JSStartSamplingProfilingOnMainJSCThread(ctx); | ||
} | ||
|
||
} | ||
} | ||
|
||
#endif // WITH_JSC_EXTRA_TRACING |
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,16 @@ | ||
// Copyright 2004-present Facebook. All Rights Reserved. | ||
|
||
#pragma once | ||
|
||
#ifdef WITH_JSC_EXTRA_TRACING | ||
|
||
#include <JavaScriptCore/JSContextRef.h> | ||
|
||
namespace facebook { | ||
namespace react { | ||
|
||
void initSamplingProfilerOnMainJSCThread(JSGlobalContextRef ctx); | ||
} | ||
} | ||
|
||
#endif // WITH_JSC_EXTRA_TRACING |