Ardour  9.0-pre0-427-gd2a3450e2f
libs/canvas/canvas/debug.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2015 Paul Davis <paul@linuxaudiosystems.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __CANVAS_DEBUG_H__
20 #define __CANVAS_DEBUG_H__
21 
22 #include <sys/time.h>
23 #include <map>
24 #include "pbd/debug.h"
25 
26 #include "canvas/visibility.h"
27 
28 namespace PBD {
29  namespace DEBUG {
38  }
39 }
40 
41 #ifdef CANVAS_DEBUG
42 #define CANVAS_DEBUG_NAME(i, n) i->name = n;
43 #else
44 #define CANVAS_DEBUG_NAME(i, n) /* empty */
45 #endif
46 
47 namespace ArdourCanvas {
48  LIBCANVAS_API extern struct timeval epoch;
49  LIBCANVAS_API extern std::map<std::string, struct timeval> last_time;
50  LIBCANVAS_API extern void checkpoint (std::string, std::string);
51  LIBCANVAS_API extern void set_epoch ();
52  LIBCANVAS_API extern const char* event_type_string (int event_type);
53  LIBCANVAS_API extern int render_count;
54  LIBCANVAS_API extern int render_depth;
55  LIBCANVAS_API extern int dump_depth;
56 }
57 
58 #endif
#define LIBCANVAS_API
const char * event_type_string(int event_type)
std::map< std::string, struct timeval > last_time
struct timeval epoch
void set_epoch()
void checkpoint(std::string, std::string)
DebugBits CanvasBox
DebugBits CanvasTable
DebugBits CanvasItemsDirtied
DebugBits CanvasEnterLeave
DebugBits CanvasRender
DebugBits CanvasSizeAllocate
DebugBits CanvasItems
DebugBits CanvasEvents
Definition: axis_view.h:42
std::bitset< 256 > DebugBits