aboutsummaryrefslogtreecommitdiff
path: root/lib/arm_profiler/include/arm_profiler.hpp
diff options
context:
space:
mode:
authorJonny Svärd <jonny.svaerd@arm.com>2022-05-10 17:29:30 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-06-14 10:23:21 +0000
commit2ebaac7a007cbfae7fff818e4d6c4c33562eea0e (patch)
tree928435cf7c8312c8c03a921c33bc7e3b791980b3 /lib/arm_profiler/include/arm_profiler.hpp
parenta3b7c692625205bbff3e078c378f146dd2578efd (diff)
downloadethos-u-core-software-2ebaac7a007cbfae7fff818e4d6c4c33562eea0e.tar.gz
Refactor performance measurements
Change 'Inference runtime' to measure CPU cycles for the Tensorflow Lite Micro interpreter.Invoke() call. Add 'Operator(s) runtime' print that prints a summary for cycles spent on all operators during an inference. (This is equivalent to the old reported 'Inference runtime') Move prints out of the EndEvent() function in ArmProfiler as it otherwise interferes with the inference cycle measurement. Change-Id: Ie11b5abb5b12a3bcf5a67841f04834d05dfd796d
Diffstat (limited to 'lib/arm_profiler/include/arm_profiler.hpp')
-rw-r--r--lib/arm_profiler/include/arm_profiler.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/arm_profiler/include/arm_profiler.hpp b/lib/arm_profiler/include/arm_profiler.hpp
index 0b97e2e..0e6784d 100644
--- a/lib/arm_profiler/include/arm_profiler.hpp
+++ b/lib/arm_profiler/include/arm_profiler.hpp
@@ -31,6 +31,7 @@ public:
uint32_t BeginEvent(const char *tag);
void EndEvent(uint32_t event_handle);
uint64_t GetTotalTicks() const;
+ void ReportResults() const;
private:
size_t max_events_;