diff options
author | Jens Elofsson <jens.elofsson@arm.com> | 2021-05-06 16:21:29 +0200 |
---|---|---|
committer | Måns Nilsson <mans.nilsson@arm.com> | 2021-05-21 15:58:47 +0200 |
commit | de044c3032917dd952de1eb441572c1435841b33 (patch) | |
tree | b9e0da9fa82e6ce029190a4602a488c31eb5c20e /lib/ethosu_profiler/include/ethosu_profiler.hpp | |
parent | 955288a1b08bbfb0ea5fc0c5994b1a3a6ff8506e (diff) | |
download | ethos-u-core-software-de044c3032917dd952de1eb441572c1435841b33.tar.gz |
Remove the PMU event register handling from EthosuProfiler.
Change-Id: I8d303043806e081238067e5773e4d4125bc64cfa
Diffstat (limited to 'lib/ethosu_profiler/include/ethosu_profiler.hpp')
-rw-r--r-- | lib/ethosu_profiler/include/ethosu_profiler.hpp | 16 |
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; }; |