Nintendo 3DS CPU Profiler  4.04
 All Functions Enumerations Enumerator Groups Pages
Emulating the GUI

Sample by Time

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 FunctionalityRuntime Control Equivalent
Sampling RatennprofRuntimeControlSetSampleTime
Performance CountersnnprofRuntimeControlSetPerformanceCounters
Callstack Toggle ButtonNN_PROF_FLAGS_CALLSTACKS
Core Toggle ButtonsNN_PROF_CORE

Features not yet available in the API

  • Stop after an amount of time
      However, if a time is set in the GUI, the profile will stop after that amount of time

Example


Sample by Performance Counter

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 FunctionalityRuntime Control Equivalent
Sampling RatennprofRuntimeControlSetSampleTime
Performance CountersnnprofRuntimeControlSetSampleMethod
Callstack Toggle ButtonNN_PROF_FLAGS_CALLSTACKS
Core Toggle ButtonsNN_PROF_CORE

Features not yet available in the API

  • Stop after an amount of time
      However, if a time is set in the GUI, the profile will stop after that amount of time

Example


Instrumented Profile

It is not currently possible to take instrumented profiles via the Runtime Control API.