| 24 | { |
| 25 | |
| 26 | void ProfilingService::ResetExternalProfilingOptions(const arm::pipe::ProfilingOptions& options, |
| 27 | bool resetProfilingService) |
| 28 | { |
| 29 | #if !defined(ARMNN_STUB_PROFILING) |
| 30 | // Update the profiling options |
| 31 | m_Options = options; |
| 32 | m_TimelineReporting = options.m_TimelineEnabled; |
| 33 | m_ConnectionAcknowledgedCommandHandler.setTimelineEnabled(options.m_TimelineEnabled); |
| 34 | |
| 35 | // Check if the profiling service needs to be reset |
| 36 | if (resetProfilingService) |
| 37 | { |
| 38 | // Reset the profiling service |
| 39 | Reset(); |
| 40 | } |
| 41 | #else |
| 42 | IgnoreUnused(options); |
| 43 | IgnoreUnused(resetProfilingService); |
| 44 | #endif // ARMNN_STUB_PROFILING |
| 45 | } |
| 46 | |
| 47 | bool ProfilingService::IsProfilingEnabled() const |
| 48 | { |