From 253d6d63bc0986047448ee18162b5543f3f72a23 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Fri, 4 Dec 2009 15:01:29 -0500 Subject: docs: ephy-debug --- lib/ephy-debug.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'lib') diff --git a/lib/ephy-debug.c b/lib/ephy-debug.c index 81f93ff6b..0eba70f22 100644 --- a/lib/ephy-debug.c +++ b/lib/ephy-debug.c @@ -30,6 +30,14 @@ #include #include +/** + * SECTION:ephy-debug + * @short_description: Epiphany debugging and profiling facilities + * + * Epiphany includes powerful profiling and debugging facilities to log and + * analyze modules. Refer to doc/debugging.txt for more information. + */ + static const char *ephy_debug_break = NULL; #ifndef DISABLE_PROFILING @@ -156,6 +164,13 @@ trap_handler (const char *log_domain, } } +/** + * ephy_debug_init: + * + * Starts the debugging facility, see doc/debugging.txt in Epiphany's source for + * more information. It also starts module logging and profiling if the + * appropiate variables are set: EPHY_LOG_MODULES and EPHY_PROFILE_MODULES. + **/ void ephy_debug_init (void) { @@ -240,6 +255,13 @@ ephy_profiler_free (EphyProfiler *profiler) g_free (profiler); } +/** + * ephy_profiler_start: + * @name: name of this new profiler + * @module: Epiphany module to profile + * + * Starts a new profiler on @module naming it @name. + **/ void ephy_profiler_start (const char *name, const char *module) { @@ -260,6 +282,12 @@ ephy_profiler_start (const char *name, const char *module) g_hash_table_insert (ephy_profilers_hash, g_strdup (name), profiler); } +/** + * ephy_profiler_stop: + * @name: name of the profiler to stop + * + * Stops the profiler named @name. + **/ void ephy_profiler_stop (const char *name) { -- cgit v1.2.3