NvPerfAPI Documentation

Introduction

The NvPerfAPI library allows you to collect NVIDIA performance counters.

Getting Started

Initialization

You must call NVPA_Init() before any other API function.

You must call any of the NVPA_LoadDriver*() functions before enumerating devices.

You must call NVPA_LoadDriver*() for a particular API before your application's first call into that API. If you call NVPA_LoadDriver*() too late, the profiler will be missing its necessary hooks into the driver.

Common Conventions

Return Codes

All NvPerfAPI functions return an error code NVPA_Status.

Successful calls always return NVPA_STATUS_SUCCESS. Any other return code indicates either misuse of the API, or a runtime error.

Out-Parameters

Functions may "return" values via out-parameters, i.e. pointers to values.

All strings returned via out-parameters may be treated global constants; you must not free/delete them.


NVIDIA(R) PerfWorks SDK Documentation (c) 2015-2016. NVIDIA Corporation. All Rights Reserved.