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

Method ResetExternalProfilingOptions

profiling/client/src/ProfilingService.cpp:26–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24{
25
26void 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
47bool ProfilingService::IsProfilingEnabled() const
48{

Calls 2

setTimelineEnabledMethod · 0.80
IgnoreUnusedFunction · 0.50

Tested by 1