X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=flavors%2Fgl%2Fsource%2Fprofiler.h;h=547bd3514004f01b8ff540391ae62fbc24232954;hp=4d5c5a834641300fe247730ca94dd3f1c3f7a79d;hb=81f1ddee977603293d0c5710f2db69130dac6a96;hpb=a51c2557622ea93944e24f58845609526eb46ec1 diff --git a/flavors/gl/source/profiler.h b/flavors/gl/source/profiler.h index 4d5c5a8..547bd35 100644 --- a/flavors/gl/source/profiler.h +++ b/flavors/gl/source/profiler.h @@ -1,23 +1,24 @@ /* $Id$ This file is part of gldbg -Copyright © 2010 Mikko Rasa, Mikkosoft Productions +Copyright © 2011 Mikko Rasa, Mikkosoft Productions Distributed under the GPL */ #ifndef PROFILER_H_ #define PROFILER_H_ -#include #include "gldecoder.h" #include "tool.h" class Profiler: public RegisteredTool { private: + typedef unsigned Time; + GlDecoder *decoder; bool enabled; - Msp::Time::TimeStamp start; + Time start; unsigned frames; unsigned draw_calls; unsigned vertices; @@ -34,6 +35,8 @@ private: static void glDrawElements(void *, GLenum, int, GLenum, const void *); static void glDrawRangeElements(void *, GLenum, unsigned, unsigned, int, GLenum, const void *); static void glXSwapBuffers(void *, Display *, GLXDrawable); + + static Time get_time(); }; #endif