NOLINTNEXTLINE(readability-convert-member-functions-to-static)
| 1217 | JSValueRef JavaScriptRuntime::runtimeStartTraceRecording(JSFunctionNativeCallContext& callContext) { |
| 1218 | auto id = Tracer::shared().startRecording(); |
| 1219 | |
| 1220 | // Schedule auto stop recording to make sure we are not leaking. |
| 1221 | _dispatchQueue->asyncAfter([id]() { Tracer::shared().stopRecording(id); }, |
| 1222 | std::chrono::seconds(kTraceRecordingTimeoutSeconds)); |
| 1223 | |
| 1224 | return callContext.getContext().newNumber(static_cast<int32_t>(id)); |
| 1225 | } |
| 1226 | |
| 1227 | static double traceTimePointToEpochMicroseconds(const TraceTimePoint& timePoint) { |
nothing calls this directly
no test coverage detected