aboutsummaryrefslogtreecommitdiff
path: root/lib/ethosu_profiler/include/ethosu_profiler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ethosu_profiler/include/ethosu_profiler.hpp')
-rw-r--r--lib/ethosu_profiler/include/ethosu_profiler.hpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/ethosu_profiler/include/ethosu_profiler.hpp b/lib/ethosu_profiler/include/ethosu_profiler.hpp
index 745c670..503ebba 100644
--- a/lib/ethosu_profiler/include/ethosu_profiler.hpp
+++ b/lib/ethosu_profiler/include/ethosu_profiler.hpp
@@ -28,23 +28,13 @@
namespace tflite {
class EthosUProfiler : public MicroProfiler {
public:
- EthosUProfiler(ethosu_pmu_event_type event0 = ETHOSU_PMU_NO_EVENT,
- ethosu_pmu_event_type event1 = ETHOSU_PMU_NO_EVENT,
- ethosu_pmu_event_type event2 = ETHOSU_PMU_NO_EVENT,
- ethosu_pmu_event_type event3 = ETHOSU_PMU_NO_EVENT,
- size_t max_events = 200);
+ EthosUProfiler(size_t max_events = 200);
uint32_t BeginEvent(const char *tag);
void EndEvent(uint32_t event_handle);
uint64_t GetTotalTicks() const;
void Log() const;
- uint32_t GetEthosuPMUCounter(int counter);
private:
- void MonitorEthosuPMUEvents(ethosu_pmu_event_type event0,
- ethosu_pmu_event_type event1,
- ethosu_pmu_event_type event2,
- ethosu_pmu_event_type event3);
-
size_t max_events_;
std::unique_ptr<const char *[]> tags_;
std::unique_ptr<uint64_t[]> start_ticks_;
@@ -52,10 +42,6 @@ private:
int num_events_ = 0;
- ethosu_pmu_event_type ethosu_pmu_cntrs[ETHOSU_PMU_NCOUNTERS];
-
- uint32_t event_counters[ETHOSU_PMU_NCOUNTERS];
-
TF_LITE_REMOVE_VIRTUAL_DELETE;
};