MCPcopy Create free account
hub / github.com/ARM-software/armnn / FindKernelMeasurements

Function FindKernelMeasurements

src/armnn/Profiling.cpp:62–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62std::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
82std::map<std::string, ProfilerImpl::ProfilingEventStats> ProfilerImpl::CalculateProfilingEventStats() const
83{

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
GetMeasurementsMethod · 0.45

Tested by

no test coverage detected