MCPcopy Create free account
hub / github.com/facebook/react / Init

Function Init

scripts/perf-counters/src/perf-counters.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using HPHP::HardwareCounter;
15
16void Init(const v8::FunctionCallbackInfo<v8::Value>& args) {
17 // TODO: Allow customizing recorded events
18 bool enable = true;
19 std::string events = "";
20 bool recordSubprocesses = false;
21 HardwareCounter::Init(enable, events, recordSubprocesses);
22 HardwareCounter::s_counter.getCheck();
23}
24
25void GetCounters(const v8::FunctionCallbackInfo<v8::Value>& args) {
26 v8::Isolate* isolate = args.GetIsolate();

Callers 1

js_perf_counters_initFunction · 0.85

Calls 1

getCheckMethod · 0.45

Tested by

no test coverage detected