1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) James Liggett 2006 <jrliggett@cox.net>
6 * gprof-profile-data.h is free software.
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_PROFILE_DATA_H
25 #define _GPROF_PROFILE_DATA_H
27 #include <glib-object.h>
29 #include <sys/types.h>
31 #include <libgnomevfs/gnome-vfs.h>
32 #include "gprof-flat-profile.h"
33 #include "gprof-call-graph.h"
37 typedef struct _GProfProfileData GProfProfileData
;
38 typedef struct _GProfProfileDataClass GProfProfileDataClass
;
39 typedef struct _GProfProfileDataPriv GProfProfileDataPriv
;
41 #define GPROF_PROFILE_DATA_TYPE (gprof_profile_data_get_type ())
42 #define GPROF_PROFILE_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPROF_PROFILE_DATA_TYPE, GProfProfileData))
43 #define GPROF_PROFILE_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPROF_PROFILE_DATA_TYPE, GProfProfileDataClass))
44 #define IS_GPROF_PROFILE_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPROF_PROFILE_DATA_TYPE))
45 #define IS_GPROF_PROFILE_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPROF_PROFILE_DATA_TYPE))
47 struct _GProfProfileData
50 GProfProfileDataPriv
*priv
;
53 struct _GProfProfileDataClass
55 GObjectClass parent_class
;
58 GType
gprof_profile_data_get_type (void);
59 GProfProfileData
*gprof_profile_data_new (void);
60 void gprof_profile_data_free (GProfProfileData
*self
);
62 gboolean
gprof_profile_data_init_profile (GProfProfileData
*self
, gchar
*path
,
63 gchar
*alternate_profile_data_path
,
66 GProfFlatProfile
*gprof_profile_data_get_flat_profile (GProfProfileData
*self
);
67 GProfCallGraph
*gprof_profile_data_get_call_graph (GProfProfileData
*self
);
68 gboolean
gprof_profile_data_has_data (GProfProfileData
*self
);