X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_profiler.hpp;h=d8332420c63fc6ce622fd300315d275a85ba0db2;hb=3801952b80cd7a7160f6410518f6e3740d461b60;hp=42fd032008ca668b4fe3767947b092005996f426;hpb=56ad11c7849c7e6ca0ad66558cb1a99c58d4cd3d;p=apitrace diff --git a/common/trace_profiler.hpp b/common/trace_profiler.hpp index 42fd032..d833242 100644 --- a/common/trace_profiler.hpp +++ b/common/trace_profiler.hpp @@ -34,17 +34,10 @@ namespace trace { struct Profile { - struct CpuCall { + struct Call { unsigned no; - int64_t cpuStart; - int64_t cpuDuration; - - std::string name; - }; - - struct DrawCall { - unsigned no; + unsigned program; int64_t gpuStart; int64_t gpuDuration; @@ -65,6 +58,12 @@ struct Profile { int64_t cpuStart; int64_t cpuDuration; + + /* Indices to profile->calls array */ + struct { + unsigned begin; + unsigned end; + } calls; }; struct Program { @@ -73,12 +72,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