Prepare and Start Profiling

Prepare the Target

If you have downloaded and installed DS-5 as part of TADP, you will not need to configure the kernel or compile the gator driver and daemon individually.

However, if you have installed DS-5 separately, the steps to prepare the target are as follows: 

$ adb shell insmod /system/lib/modules/gator.ko 
$ adb forward tcp:8080 tcp:8080
$ adb shell gatord &
Note: Either gatord and gator.ko should be in the same directory, or the gator.ko module should be already loaded.

Prepare the Host

  1. Launch DS-5 Eclipse.
    Enter the target address as localhost. The connection is made to the target port 8080.
  2. Click the Capture Options button. Enter the capture session name, and the address as localhost. Turn call stack unwinding on, turn Process Debug Information on, set the sample rate to Normal, and buffer mode to Streaming.
    To get symbols resolved, add the profiled application library's ELF files to the Program Images section.
    Note: The profiled Example.apk is a zip archive that contains the lib/ folder with the needed ELF files.
  3. Click the Counters button. Select the counters to be profiled and save the configuration. To save modifications, the Counters Options directory from where gatord was launched must be writable.
    Note: L2 cache counters work with the patched kernel.
  4. Start profiling.
    Manually start the application on the target, and press Start in DS-5. When finished, press Stop and wait while DS-5 analyzes the gathered data.




NVIDIA® GameWorks™ Documentation Rev. 1.0.211026 ©2014-2021. NVIDIA Corporation and affiliates. All Rights Reserved.