24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_PROFILER
25 #define ARM_COMPUTE_TEST_PROFILER
58 void add(std::unique_ptr<Instrument> instrument);
94 const std::string &
header()
const;
97 std::vector<std::unique_ptr<Instrument>> _instruments{};
99 std::string _header_data{};
void add(std::unique_ptr< Instrument > instrument)
Add instrument to the performance monitor.
Profiler class to collect benchmark numbers.
void test_stop()
Call test_stop() on all the added instruments.
const std::string & header() const
Return JSON formatted header data.
std::map< std::string, std::vector< Measurement > > MeasurementsMap
Mapping from instrument ids to their measurements.
const MeasurementsMap & measurements() const
Return measurements for all instruments.
Copyright (c) 2017-2024 Arm Limited.
void stop()
Call stop() on all the added instruments.
void start()
Call start() on all the added instruments.
void test_start()
Call test_start() on all the added instruments.