Click or drag to resize

ControllerStartTracing Method

Starts CPU tracing.

Namespace:  YourKit.Profiler.Api
Assembly:  YourKit.Profiler.Api (in YourKit.Profiler.Api.dll) Version: 2025.3.143
Syntax
public void StartTracing(
	CpuProfilingSettings settings
)

Parameters

settings
Type: YourKit.Profiler.ApiCpuProfilingSettings
CPU tracing settings.
Exceptions
ExceptionCondition
Exception If CPU profiling cannot be started. Possible reasons:
  • CPU tracing has been disabled for the profiled application
  • the profiled application has terminated
  • I/O error
Remarks
When tracing is used, the profiler intercepts method invocations of the profiled application for recording time spent inside each profiled method. Both times and invocation counts are available.

If CPU profiling is already running, it will reset and start anew.

See Also