| 42 | } |
| 43 | |
| 44 | void 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 | |
| 50 | void SimpleProfiler::PrintProfilerDataCallback(const FunctionCallbackInfo<Value>& args) { |
| 51 | try { |
nothing calls this directly
no test coverage detected