| 60 | } |
| 61 | |
| 62 | std::vector<Measurement> FindKernelMeasurements(const Event* event) |
| 63 | { |
| 64 | ARMNN_THROW_INVALIDARG_MSG_IF_FALSE(event, "event should not be null."); |
| 65 | |
| 66 | std::vector<Measurement> measurements; |
| 67 | |
| 68 | // Search through the measurements. |
| 69 | for (const auto& measurement : event->GetMeasurements()) |
| 70 | { |
| 71 | if (measurement.m_Name.rfind("OpenClKernelTimer", 0) == 0 |
| 72 | || measurement.m_Name.rfind("NeonKernelTimer", 0) == 0) |
| 73 | { |
| 74 | // Measurement found. |
| 75 | measurements.push_back(measurement); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | return measurements; |
| 80 | } |
| 81 | |
| 82 | std::map<std::string, ProfilerImpl::ProfilingEventStats> ProfilerImpl::CalculateProfilingEventStats() const |
| 83 | { |
nothing calls this directly
no test coverage detected