MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ScopedProfile

Method ScopedProfile

tensorflow/lite/core/api/profiler.h:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47class 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_) {

Callers

nothing calls this directly

Calls 1

BeginEventMethod · 0.45

Tested by

no test coverage detected