When sampling by time, most of the abilities of the Sampled Profile tab are available to use via the Runtime Control API. All of the necessary settings can be passed into the nnprofRuntimeControl API functions.
GUI Functionality | Runtime Control Equivalent |
---|---|
Sampling Rate | nnprofRuntimeControlSetSampleTime |
Performance Counters | nnprofRuntimeControlSetPerformanceCounters |
Callstack Toggle Button | NN_PROF_FLAGS_CALLSTACKS |
Core Toggle Buttons | NN_PROF_CORE |
Features not yet available in the API
When sampling by performance counter, most of the abilities of the Sampled Profile tab are available to use via the Runtime Control API. All of the necessary settings can be passed into the PROFILERSetProfileSettings() function.
GUI Functionality | Runtime Control Equivalent |
---|---|
Sampling Rate | nnprofRuntimeControlSetSampleTime |
Performance Counters | nnprofRuntimeControlSetSampleMethod |
Callstack Toggle Button | NN_PROF_FLAGS_CALLSTACKS |
Core Toggle Buttons | NN_PROF_CORE |
Features not yet available in the API
It is not currently possible to take instrumented profiles via the Runtime Control API.