| 47 | class ScopedProfile { |
| 48 | public: |
| 49 | ScopedProfile(Profiler* profiler, const char* tag, |
| 50 | Profiler::EventType event_type = Profiler::EventType::DEFAULT, |
| 51 | uint32_t event_metadata = 0) |
| 52 | : profiler_(profiler), event_handle_(0) { |
| 53 | if (profiler) { |
| 54 | event_handle_ = profiler_->BeginEvent(tag, event_type, event_metadata); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | ~ScopedProfile() { |
| 59 | if (profiler_) { |
nothing calls this directly
no test coverage detected