MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / measurements

Method measurements

tests/framework/instruments/MaliCounter.cpp:424–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424Instrument::MeasurementsMap MaliCounter::measurements() const
425{
426 Measurement counters((_counters.at("GPU_ACTIVE").value() / _scale_factor).v.floating_point,
427 _unit + _counters.at("GPU_ACTIVE").unit()); //NOLINT
428
429 MeasurementsMap measurements{
430 {"Timespan", Measurement(_stop_time - _start_time, "ns")},
431 {"GPU active", counters},
432 };
433
434 for (const auto &counter : _core_counters)
435 {
436 for (const auto &core : counter.second.values)
437 {
438 measurements.emplace(counter.second.name + " #" + support::cpp11::to_string(core.first),
439 Measurement(core.second / _scale_factor, _unit + counter.second.unit));
440 }
441 }
442
443 return measurements;
444}
445} // namespace framework
446} // namespace test
447} // namespace arm_compute

Callers

nothing calls this directly

Calls 2

MeasurementClass · 0.70
to_stringFunction · 0.50

Tested by

no test coverage detected