Ardour  9.2-266-g5d535d4cb7
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 <cstdint>
23 #include <map>
24 
25 #include "pbd/debug.h"
26 
27 #include "canvas/visibility.h"
28 
29 namespace PBD {
30  namespace DEBUG {
39  }
40 }
41 
42 #ifdef CANVAS_DEBUG
43 #define CANVAS_DEBUG_NAME(i, n) i->name = n;
44 #else
45 #define CANVAS_DEBUG_NAME(i, n) /* empty */
46 #endif
47 
48 namespace ArdourCanvas {
49  LIBCANVAS_API extern int64_t epoch;
50  LIBCANVAS_API extern std::map<std::string, int64_t> last_time;
51  LIBCANVAS_API extern void checkpoint (std::string, std::string);
52  LIBCANVAS_API extern void set_epoch ();
53  LIBCANVAS_API extern const char* event_type_string (int event_type);
54  LIBCANVAS_API extern int render_count;
55  LIBCANVAS_API extern int render_depth;
56  LIBCANVAS_API extern int dump_depth;
57 }
58 
59 #endif
#define LIBCANVAS_API
const char * event_type_string(int event_type)
int64_t epoch
void set_epoch()
std::map< std::string, int64_t > last_time
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