]> git.cworth.org Git - apitrace/blobdiff - common/trace_profiler.cpp
Added support for recording GL_SAMPLES_PASSED.
[apitrace] / common / trace_profiler.cpp
index fd684ede7bf16d623b7b54b9f80e67477aaf8bc8..ab29e361220bef7ca93c5e2d5edc0af83d86633e 100644 (file)
@@ -36,7 +36,7 @@ Profiler::~Profiler()
 {
 }
 
-void Profiler::addCall(unsigned no, const char *name, uint64_t gpu_start, uint64_t gpu_duration)
+void Profiler::addCall(unsigned no, const char *name, uint64_t gpu_start, uint64_t gpu_duration, uint64_t samples_passed)
 {
     if (baseTime == 0)
         baseTime = gpu_start;
@@ -45,6 +45,7 @@ void Profiler::addCall(unsigned no, const char *name, uint64_t gpu_start, uint64
               << no << " "
               << (gpu_start - baseTime) << " "
               << gpu_duration << " "
+              << samples_passed << " "
               << name << std::endl;
 }