| 29 | } |
| 30 | |
| 31 | ScopedTrace::ScopedTrace(const StringBox& trace) : _trace(trace.toStringView()), _snapTrace(_trace) { |
| 32 | begin(); |
| 33 | |
| 34 | if (Tracer::shared().isRecording()) { |
| 35 | _startTime = {std::chrono::steady_clock::now()}; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | ScopedTrace::ScopedTrace(std::string&& trace) : _trace(std::move(trace)), _snapTrace(_trace) { |
| 40 | begin(); |
nothing calls this directly
no test coverage detected