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 --- doc/reference/Makefile.am | 1 - doc/reference/epiphany-docs.sgml | 4 ++++ doc/reference/epiphany-sections.txt | 8 ++++++++ lib/ephy-debug.c | 28 ++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am index f8a3205f5..d611e9d40 100644 --- a/doc/reference/Makefile.am +++ b/doc/reference/Makefile.am @@ -34,7 +34,6 @@ CFILE_GLOB=$(top_srcdir)/lib/*.c IGNORE_HFILES = \ config.h \ eel-gconf-extensions.h \ - ephy-debug.h \ ephy-dialog.h \ ephy-dnd.h \ ephy-file-chooser.h \ diff --git a/doc/reference/epiphany-docs.sgml b/doc/reference/epiphany-docs.sgml index e65406f33..5b94fbf12 100644 --- a/doc/reference/epiphany-docs.sgml +++ b/doc/reference/epiphany-docs.sgml @@ -13,6 +13,10 @@ + + Library + + Widgets diff --git a/doc/reference/epiphany-sections.txt b/doc/reference/epiphany-sections.txt index 3b0b7b081..00c7699ab 100644 --- a/doc/reference/epiphany-sections.txt +++ b/doc/reference/epiphany-sections.txt @@ -95,6 +95,14 @@ ephy_zoom_control_set_zoom_level ephy_zoom_control_get_zoom_level +
+ephy-debug +EphyDebug +ephy_debug_init +ephy_profiler_start +ephy_profiler_stop +
+
ephy-location-action EphyLocationAction 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