diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
commit | aaea166135ace01709f7e0be64f40be80f4107ec (patch) | |
tree | 0e794ef7a723e4aaf909b841a6816e405b4ceca1 /libs/canvas/canvas/debug.h | |
parent | 1d8bac08c0c00d44e22c581768a275e1b21a99a7 (diff) |
initial commit of hand merging, plus getting "ancient" waf script to work correctly
Diffstat (limited to 'libs/canvas/canvas/debug.h')
-rw-r--r-- | libs/canvas/canvas/debug.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libs/canvas/canvas/debug.h b/libs/canvas/canvas/debug.h new file mode 100644 index 0000000000..ac5f4763ad --- /dev/null +++ b/libs/canvas/canvas/debug.h @@ -0,0 +1,30 @@ +#ifndef __CANVAS_DEBUG_H__ +#define __CANVAS_DEBUG_H__ + +#include <sys/time.h> +#include <map> +#include "pbd/debug.h" + +namespace PBD { + namespace DEBUG { + extern uint64_t CanvasItems; + extern uint64_t CanvasItemsDirtied; + extern uint64_t CanvasEvents; + } +} + +#ifdef CANVAS_DEBUG +#define CANVAS_DEBUG_NAME(i, n) i->name = n; +#else +#define CANVAS_DEBUG(i, n) /* empty */ +#endif + +namespace ArdourCanvas { + extern struct timeval epoch; + extern std::map<std::string, struct timeval> last_time; + extern void checkpoint (std::string, std::string); + extern void set_epoch (); + extern int render_count; +} + +#endif |