Predator  [unstable] git snapshot
symdump.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Kamil Dudka <kdudka@redhat.com>
3  *
4  * This file is part of predator.
5  *
6  * predator is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * any later version.
10  *
11  * predator is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with predator. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 
21 #ifndef H_GUARD_SYM_DUMP_H
22 #define H_GUARD_SYM_DUMP_H
23 
24 /**
25  * @file symdump.hh
26  * collection of dump_* functions operating on a SymHeap object, handy when @b
27  * debugging
28  */
29 
30 class SymHeap;
31 class SymHeapCore;
32 
33 namespace Trace {
34  class Node;
35 }
36 
37 /// dummy function to pull all symbols from a static library
38 void initSymDump();
39 
40 /// plot the given heap to file "symdump-NNNN.dot"
41 void sl_dump(const SymHeapCore *sh);
42 
43 /// plot the given heap to file "symdump-NNNN.dot"
44 void sl_dump(const SymHeapCore &sh);
45 
46 /// plot the given heap to file "NAME-NNNN.dot"
47 void sl_dump(const SymHeapCore &sh, const char *name);
48 
49 /// plot a trace graph with the given end-point
50 void sl_dump(Trace::Node *endPoint);
51 
52 #endif /* H_GUARD_SYM_DUMP_H */