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

Method StopCPUProfiler

test-app/runtime/src/main/cpp/Profiler.cpp:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89bool Profiler::StopCPUProfiler(Isolate* isolate, const Local<String>& name) {
90 auto v8prof = CpuProfiler::New(isolate);
91 auto cpuProfile = v8prof->StopProfiling(name);
92
93 auto success = false;
94
95 if (nullptr != cpuProfile) {
96 success = Write(cpuProfile);
97 cpuProfile->Delete();
98 }
99
100 return success;
101}
102
103bool Profiler::Write(CpuProfile* cpuProfile) {
104 struct timespec nowt;

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
DeleteMethod · 0.80

Tested by

no test coverage detected