X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fretrace.hpp;h=01d2609e8c9debaad11fb35b158e2f90c197818b;hb=6d92327e88d2bb4c03a1b84663e50497f99fc24f;hp=a019de787cae5de55432ba2797f9355cca45c3ad;hpb=ab8142ff4ab07a92565676ead5b0ad4607492cbc;p=apitrace diff --git a/retrace/retrace.hpp b/retrace/retrace.hpp index a019de7..01d2609 100644 --- a/retrace/retrace.hpp +++ b/retrace/retrace.hpp @@ -36,6 +36,7 @@ #include "trace_model.hpp" #include "trace_parser.hpp" +#include "trace_profiler.hpp" namespace image { @@ -47,6 +48,7 @@ namespace retrace { extern trace::Parser parser; +extern trace::Profiler profiler; /** @@ -146,6 +148,9 @@ extern bool debug; * Add profiling data to the dump when retracing. */ extern bool profiling; +extern bool profilingCpuTimes; +extern bool profilingGpuTimes; +extern bool profilingPixelsDrawn; /** * State dumping. @@ -156,6 +161,8 @@ extern bool dumpingState; extern bool doubleBuffer; extern bool coreProfile; +extern unsigned frameNo; + std::ostream &warning(trace::Call &call);