X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_profiler.hpp;h=8463c61f4ff5d06230b7b3217cf3bb723389276b;hb=4c4896f8490aca7f32956e402ffdf413d04c36dd;hp=42fd032008ca668b4fe3767947b092005996f426;hpb=56ad11c7849c7e6ca0ad66558cb1a99c58d4cd3d;p=apitrace diff --git a/common/trace_profiler.hpp b/common/trace_profiler.hpp index 42fd032..8463c61 100644 --- a/common/trace_profiler.hpp +++ b/common/trace_profiler.hpp @@ -34,16 +34,7 @@ namespace trace { struct Profile { - struct CpuCall { - unsigned no; - - int64_t cpuStart; - int64_t cpuDuration; - - std::string name; - }; - - struct DrawCall { + struct Call { unsigned no; int64_t gpuStart; @@ -65,6 +56,12 @@ struct Profile { int64_t cpuStart; int64_t cpuDuration; + + /* Indices to profile->calls array */ + struct { + unsigned begin; + unsigned end; + } calls; }; struct Program { @@ -73,12 +70,14 @@ struct Profile { uint64_t gpuTotal; uint64_t cpuTotal; uint64_t pixelTotal; - std::vector drawCalls; + + /* Indices to profile->calls array */ + std::vector calls; }; + std::vector calls; std::vector frames; std::vector programs; - std::vector cpuCalls; }; class Profiler