123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #include "NvElement.h"
- void NvElement::getProfilingData(NvElementProfiler::NvElementProfilerData &data)
- {
- profiler.getProfilerData(data);
- }
- void NvElement::printProfilingStats(std::ostream &out_stream)
- {
- out_stream << "----------- Element = " << comp_name << " -----------" << std::endl;
- profiler.printProfilerData(out_stream);
- out_stream << "-------------------------------------" << std::endl;
- }
- void NvElement::enableProfiling()
- {
- profiler.enableProfiling(true);
- }
- bool NvElement::isProfilingEnabled()
- {
- return profiler.enabled;
- }
- NvElement::NvElement(const char *name, NvElementProfiler::ProfilerField fields)
- :profiler(fields)
- {
- is_in_error = 0;
- if (!name)
- is_in_error = 1;
- this->comp_name = name;
- }
|