# microprofilerinterface

Profiling callback interface.

## tflite::MicroProfilerInterface

`class` · `cpp`

```cpp
class MicroProfilerInterface
```

Interface class that the TFLM framework relies on for profiling.

Source: `tensorflow/lite/micro/micro_profiler_interface.h:24`

### tflite::MicroProfilerInterface::~MicroProfilerInterface

`method` · `cpp`

```cpp
virtual tflite::MicroProfilerInterface::~MicroProfilerInterface()
```

Source: `tensorflow/lite/micro/micro_profiler_interface.h:26`

### tflite::MicroProfilerInterface::BeginEvent

`method` · `cpp`

```cpp
virtual uint32_t tflite::MicroProfilerInterface::BeginEvent(const char *tag) = 0
```

Marks the start of a new event and returns an event handle that can be used to mark the end of the event via EndEvent.

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| tag | const char * | Required |  |

Source: `tensorflow/lite/micro/micro_profiler_interface.h:30`

### tflite::MicroProfilerInterface::EndEvent

`method` · `cpp`

```cpp
virtual void tflite::MicroProfilerInterface::EndEvent(uint32_t event_handle) = 0
```

Marks the end of an event associated with event_handle.

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| event_handle | uint32_t | Required |  |

Source: `tensorflow/lite/micro/micro_profiler_interface.h:33`
