Updated Spanish translation
[anjuta-git-plugin.git] / plugins / profiler / gprof-call-graph.h
blobd6635ba087e91b697c0d29f132de3bb0dc5e7ce8
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * gprof-call-graph.h
4 * Copyright (C) James Liggett 2006 <jrliggett@cox.net>
5 *
6 * gprof-call-graph.h is free software.
7 *
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2, or (at your option) any later version.
12 * plugin.c is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with plugin.c. See the file "COPYING". If not,
19 * write to: The Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 #ifndef _GPROF_CALL_GRAPH_H
25 #define _GPROF_CALL_GRAPH_H
27 #include <glib.h>
28 #include <glib-object.h>
29 #include "gprof-call-graph-block-entry.h"
30 #include "gprof-call-graph-block.h"
31 #include "gprof-flat-profile.h"
32 #include "string-utils.h"
34 G_BEGIN_DECLS
36 typedef struct _GProfCallGraph GProfCallGraph;
37 typedef struct _GProfCallGraphClass GProfCallGraphClass;
38 typedef struct _GProfCallGraphPriv GProfCallGraphPriv;
40 #define GPROF_CALL_GRAPH_TYPE (gprof_call_graph_get_type ())
41 #define GPROF_CALL_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPROF_CALL_GRAPH_TYPE, GProfCallGraph))
42 #define GPROF_CALL_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPROF_CALL_GRAPH_TYPE, GProfCallGraphClass))
43 #define IS_GPROF_CALL_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPROF_CALL_GRAPH_TYPE))
44 #define IS_GPROF_CALL_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPROF_CALL_GRAPH_TYPE))
46 struct _GProfCallGraph
48 GObject parent;
49 GProfCallGraphPriv *priv;
52 struct _GProfCallGraphClass
54 GObjectClass parent_class;
57 GType gprof_call_graph_get_type (void);
59 GProfCallGraph *gprof_call_graph_new (FILE *stream,
60 GProfFlatProfile *flat_profile);
61 void gprof_call_graph_free (GProfCallGraph *self);
63 GProfCallGraphBlock *gprof_call_graph_find_block (GProfCallGraph *self,
64 gchar *name);
65 GProfCallGraphBlock *gprof_call_graph_get_first_block (GProfCallGraph *self,
66 GList **iter);
67 GProfCallGraphBlock *gprof_call_graph_get_root (GProfCallGraph *self,
68 GList **iter);
70 void gprof_call_graph_dump (GProfCallGraph *self, FILE *stream);
72 G_END_DECLS
74 #endif