aboutsummaryrefslogtreecommitdiff
path: root/framework/TestResult.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/TestResult.h')
-rw-r--r--framework/TestResult.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/framework/TestResult.h b/framework/TestResult.h
index c860cbc22c..747c2defb4 100644
--- a/framework/TestResult.h
+++ b/framework/TestResult.h
@@ -24,6 +24,8 @@
#ifndef ARM_COMPUTE_TEST_TESTRESULT
#define ARM_COMPUTE_TEST_TESTRESULT
+#include "Profiler.h"
+
namespace arm_compute
{
namespace test
@@ -58,7 +60,18 @@ struct TestResult
{
}
- Status status{ Status::NOT_RUN }; //< Execution status
+ /** Initialise the result with a status and profiling information.
+ *
+ * @param[in] status Execution status.
+ * @param[in] measurements Profiling information.
+ */
+ TestResult(Status status, const Profiler::MeasurementsMap &measurements)
+ : status{ status }, measurements{ measurements }
+ {
+ }
+
+ Status status{ Status::NOT_RUN }; //< Execution status
+ Profiler::MeasurementsMap measurements{}; //< Profiling information
};
} // namespace framework
} // namespace test