From 9fb0cac961f70d1937c5fa3eafeaee1385c89768 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 20 Apr 2018 15:46:21 +0100 Subject: COMPMID-1081: Introduced test-wide instruments Change-Id: I5831241f3fc503717cc51136453c2bf96d4b420b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128484 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- tests/framework/Profiler.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'tests/framework/Profiler.h') diff --git a/tests/framework/Profiler.h b/tests/framework/Profiler.h index 62a3dee92e..34c5224528 100644 --- a/tests/framework/Profiler.h +++ b/tests/framework/Profiler.h @@ -57,12 +57,30 @@ public: */ void add(std::unique_ptr instrument); - /** Start all added instruments to measure performance. */ + /** Call test_start() on all the added instruments + * + * Called before the test set up starts + */ + void test_start(); + + /** Call start() on all the added instruments + * + * Called just before the run of the test starts + */ void start(); - /** Stop all added instruments. */ + /** Call stop() on all the added instruments + * + * Called just after the run of the test ends + */ void stop(); + /** Call test_stop() on all the added instruments + * + * Called after the test teardown ended + */ + void test_stop(); + /** Return measurements for all instruments. * * @return measurements for all instruments. -- cgit v1.2.1