| 422 | } |
| 423 | |
| 424 | Instrument::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 |
nothing calls this directly
no test coverage detected