Ardour  9.2-129-gdf5e1050bd
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 #ifndef COMPILER_MSVC
23 #include <sys/time.h>
24 #else
25 #include <winsock2.h>
26 #endif
27 #include <map>
28 #include "pbd/debug.h"
29 
30 #include "canvas/visibility.h"
31 
32 namespace PBD {
33  namespace DEBUG {
42  }
43 }
44 
45 #ifdef CANVAS_DEBUG
46 #define CANVAS_DEBUG_NAME(i, n) i->name = n;
47 #else
48 #define CANVAS_DEBUG_NAME(i, n) /* empty */
49 #endif
50 
51 namespace ArdourCanvas {
52  LIBCANVAS_API extern struct timeval epoch;
53  LIBCANVAS_API extern std::map<std::string, struct timeval> last_time;
54  LIBCANVAS_API extern void checkpoint (std::string, std::string);
55  LIBCANVAS_API extern void set_epoch ();
56  LIBCANVAS_API extern const char* event_type_string (int event_type);
57  LIBCANVAS_API extern int render_count;
58  LIBCANVAS_API extern int render_depth;
59  LIBCANVAS_API extern int dump_depth;
60 }
61 
62 #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