class
This class can be used to add events to a MicroProfiler object that span the lifetime of the ScopedMicroProfiler object.
class ScopedMicroProfilerThis class can be used to add events to a MicroProfiler object that span the lifetime of the ScopedMicroProfiler object. Usage example:
MicroProfiler profiler(); … { ScopedMicroProfiler scoped_profiler(“custom_tag”, profiler); work_to_profile(); }
method
tflite::ScopedMicroProfiler::ScopedMicroProfiler(const char *tag, MicroProfilerInterface *profiler)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
tag | const char * | Required | |
profiler | MicroProfilerInterface * | Required |
method
tflite::ScopedMicroProfiler::~ScopedMicroProfiler()