MCPcopy Create free account
hub / github.com/NativeScript/android / Init

Method Init

test-app/runtime/src/main/cpp/SimpleProfiler.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void SimpleProfiler::Init(Isolate* isolate, Local<ObjectTemplate>& globalTemplate) {
45 s_frames.reserve(10000);
46 auto funcName = String::NewFromUtf8(isolate, "__printProfilerData").ToLocalChecked();
47 globalTemplate->Set(funcName, FunctionTemplate::New(isolate, PrintProfilerDataCallback));
48}
49
50void SimpleProfiler::PrintProfilerDataCallback(const FunctionCallbackInfo<Value>& args) {
51 try {

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
ToLocalCheckedMethod · 0.80
reserveMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected