aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/Profiler.h
diff options
context:
space:
mode:
authorFreddie Liardet <frederick.liardet@arm.com>2021-06-17 13:30:11 +0100
committerfrederick.liardet <frederick.liardet@arm.com>2021-07-19 14:11:47 +0000
commit59fd7a722e5bc7e85309d6200bc37a772721a719 (patch)
treea02958337f472ff4ceaed46c454eaca6f137efe2 /tests/framework/Profiler.h
parent67354e0862a1dd171d41cc45aeb8a470d37708d7 (diff)
downloadComputeLibrary-59fd7a722e5bc7e85309d6200bc37a772721a719.tar.gz
Add layer data to JSON output
Add layer data information to SchedulerTimer JSON output. Resolves: COMPMID-4423 Change-Id: Ife78dee8afc0910cf47b135bc6809cc170ec4ed3 Signed-off-by: Freddie Liardet <frederick.liardet@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5923 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/framework/Profiler.h')
-rw-r--r--tests/framework/Profiler.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/framework/Profiler.h b/tests/framework/Profiler.h
index 588276fcd5..7df085c8f1 100644
--- a/tests/framework/Profiler.h
+++ b/tests/framework/Profiler.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 Arm Limited.
+ * Copyright (c) 2017-2018,2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -87,9 +87,16 @@ public:
*/
const MeasurementsMap &measurements() const;
+ /** Return JSON formatted header data.
+ *
+ * @returns JSON formmated string
+ */
+ const std::string &header() const;
+
private:
std::vector<std::unique_ptr<Instrument>> _instruments{};
MeasurementsMap _measurements{};
+ std::string _header_data{};
};
} // namespace framework
} // namespace test