aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/Profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/Profiler.h')
-rw-r--r--tests/framework/Profiler.h22
1 files changed, 20 insertions, 2 deletions
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> 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.