定义于文件 72 行,文件路径为 NvElementProfiler.h。
数据结构 | |
struct | NvElementProfilerData |
保存元素的性能分析数据。 更多... | |
公共类型 | |
typedef int | ProfilerField |
公共成员函数 | |
void | getProfilerData (NvElementProfilerData &data) |
获取元素的性能分析数据。 更多... | |
void | printProfilerData (std::ostream &out_stream=std::cout) |
将元素的性能分析数据打印到输出流。 更多... | |
uint64_t | startProcessing () |
通知分析器处理已开始。 更多... | |
void | finishProcessing (uint64_t id, bool is_late) |
通知分析器处理已完成。 更多... | |
void | enableProfiling (bool reset_data) |
启用分析器。 更多... | |
void | disableProfiling () |
禁用分析器。 更多... | |
静态公共属性 | |
static const ProfilerField | PROFILER_FIELD_NONE = 0 |
static const ProfilerField | PROFILER_FIELD_TOTAL_UNITS = 1 |
static const ProfilerField | PROFILER_FIELD_LATE_UNITS = 2 |
static const ProfilerField | PROFILER_FIELD_LATENCIES = 4 |
static const ProfilerField | PROFILER_FIELD_FPS = 8 |
static const ProfilerField | PROFILER_FIELD_ALL = (PROFILER_FIELD_FPS << 1) - 1 |
友元 | |
class | NvElement |
void NvElementProfiler::disableProfiling | ( | ) |
禁用分析器。
void NvElementProfiler::enableProfiling | ( | bool | reset_data | ) |
void NvElementProfiler::finishProcessing | ( | uint64_t | id, |
bool | is_late | ||
) |
通知分析器处理已完成。
如果分析器被禁用则无效。
[in] | id | 已完成处理的单元 ID,如果应选择分析器队列中的第一个单元,则为 0。 |
[in] | is_late | 如果帧延迟到达元素,则应为 true。 |
void NvElementProfiler::getProfilerData | ( | NvElementProfilerData & | data | ) |
获取元素的性能分析数据。
[out] | data | 应填充的 NvElementProfilerData 结构的引用。 |
void NvElementProfiler::printProfilerData | ( | std::ostream & | out_stream = std::cout | ) |
将元素的性能分析数据打印到输出流。
[in] | out_stream | std::ostream 的引用。 |
uint64_t NvElementProfiler::startProcessing | ( | ) |
|
friend |
定义于文件 218 行,文件路径为 NvElementProfiler.h。