From de044c3032917dd952de1eb441572c1435841b33 Mon Sep 17 00:00:00 2001 From: Jens Elofsson Date: Thu, 6 May 2021 16:21:29 +0200 Subject: Remove the PMU event register handling from EthosuProfiler. Change-Id: I8d303043806e081238067e5773e4d4125bc64cfa --- lib/ethosu_profiler/include/ethosu_profiler.hpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'lib/ethosu_profiler/include') 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 tags_; std::unique_ptr 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; }; -- cgit v1.2.1