#include <nvperfapi_data.h>
Here, a "stack" means a stack of nested NVPA_RangeId.
Consider an example. The calls
NVPA_[API]_PushRange(pObject, 100); // draw A NVPA_[API]_PushRange(pObject, 200); // draw B NVPA_[API]_PopRange(pObject); // draw C NVPA_[API]_PopRange(pObject);
would create two range stacks:
Serialized metrics capture the total cost (data capture is inclusive):
Non-serialized metrics capture the incremental cost (data is exclusive):
NVPA_[API]_GetStackData()
NVPA_Global_EndStackData()