Predator  [unstable] git snapshot
symplot.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010-2011 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_PLOT_H
22 #define H_GUARD_SYM_PLOT_H
23 
24 /**
25  * @file symplot.hh
26  * SymPlot - symbolic heap plotter
27  */
28 
29 #include "symheap.hh"
30 
31 #include <string>
32 
33 typedef std::set<int> TIdSet;
34 
35 /// create a plot named "name-NNNN.dot", starting from all live objects
36 bool plotHeap(
37  const SymHeap &sh,
38  const std::string &name,
39  const struct cl_loc *loc = 0,
40  std::string *pName = 0,
41  const TIdSet *pHighlight = 0);
42 
43 /// create a plot named "name-NNNN.dot", starting from the given starting points
44 bool plotHeap(
45  const SymHeap &sh,
46  const std::string &name,
47  const struct cl_loc *loc,
48  const TValList &startingPoints);
49 
50 /// create a plot named "name-NNNN.dot", containing @b only the given objects
51 bool plotHeap(
52  const SymHeap &sh,
53  const std::string &name,
54  const struct cl_loc *loc,
55  const TObjSet &objs);
56 
57 #endif /* H_GUARD_SYM_PLOT_H */