mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Make g_slice_debug_tree_statistics() debug-only functionality again.
2007-05-14 Matthias Clasen <mclasen@redhat.com> * glib/gslice.h: * glib/gslice.c: * glib/glib.symbols: Make g_slice_debug_tree_statistics() debug-only functionality again. svn path=/trunk/; revision=5492
This commit is contained in:
parent
15d995bc79
commit
a061009f52
@ -1,3 +1,10 @@
|
|||||||
|
2007-05-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gslice.h:
|
||||||
|
* glib/gslice.c:
|
||||||
|
* glib/glib.symbols: Make g_slice_debug_tree_statistics()
|
||||||
|
debug-only functionality again.
|
||||||
|
|
||||||
2007-05-14 Christian Persch <chpe@gnome.org>
|
2007-05-14 Christian Persch <chpe@gnome.org>
|
||||||
|
|
||||||
* docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
|
* docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2007-05-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/running.sgml: Document g_slice_debug_tree_statistics
|
||||||
|
as debug-only functionality.
|
||||||
|
|
||||||
2007-05-11 Matthias Clasen <mclasen@redhat.com>
|
2007-05-11 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/tmpl/option.sgml: Document new G_OPTION_ARG_REMAINING
|
* glib/tmpl/option.sgml: Document new G_OPTION_ARG_REMAINING
|
||||||
|
@ -255,6 +255,21 @@ is 20.
|
|||||||
</para>
|
</para>
|
||||||
</refsect2>
|
</refsect2>
|
||||||
|
|
||||||
</refsect1>
|
<refsect2>
|
||||||
|
<title>Memory statistics</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
g_mem_profile() will output a summary g_malloc() memory usage, if memory
|
||||||
|
profiling has been enabled by calling
|
||||||
|
<literal>g_mem_set_vtable (glib_mem_profiler_table)</literal> upon startup.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If GLib has been configured with <option>--enable-debug=yes</option>,
|
||||||
|
then g_slice_debug_tree_statistics() can be called in a debugger to
|
||||||
|
output details about the memory usage of the slice allocator.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</refsect2>
|
||||||
|
</refsect1>
|
||||||
</refentry>
|
</refentry>
|
||||||
|
@ -689,9 +689,11 @@ g_slice_free_chain_with_offset
|
|||||||
g_slice_set_config
|
g_slice_set_config
|
||||||
g_slice_get_config
|
g_slice_get_config
|
||||||
g_slice_get_config_state
|
g_slice_get_config_state
|
||||||
|
#ifdef INCLUDE_INTERNAL_SYMBOLS
|
||||||
g_slice_debug_tree_statistics
|
g_slice_debug_tree_statistics
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if IN_HEADER(__G_MESSAGES_H__)
|
#if IN_HEADER(__G_MESSAGES_H__)
|
||||||
#if IN_FILE(__G_MESSAGES_C__)
|
#if IN_FILE(__G_MESSAGES_C__)
|
||||||
|
@ -1379,10 +1379,10 @@ smc_tree_remove (SmcKType key)
|
|||||||
return found_one;
|
return found_one;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef G_ENABLE_DEBUG
|
||||||
void
|
void
|
||||||
g_slice_debug_tree_statistics (void)
|
g_slice_debug_tree_statistics (void)
|
||||||
{
|
{
|
||||||
#ifdef G_ENABLE_DEBUG
|
|
||||||
g_mutex_lock (smc_tree_mutex);
|
g_mutex_lock (smc_tree_mutex);
|
||||||
if (smc_tree_root)
|
if (smc_tree_root)
|
||||||
{
|
{
|
||||||
@ -1438,8 +1438,8 @@ g_slice_debug_tree_statistics (void)
|
|||||||
* GSlice: MemChecker: 504.900474 branches per trunk, 98.81% utilization
|
* GSlice: MemChecker: 504.900474 branches per trunk, 98.81% utilization
|
||||||
* GSlice: MemChecker: 4.965039 entries per branch, 1 minimum, 37 maximum
|
* GSlice: MemChecker: 4.965039 entries per branch, 1 minimum, 37 maximum
|
||||||
*/
|
*/
|
||||||
#endif /* G_ENABLE_DEBUG */
|
|
||||||
}
|
}
|
||||||
|
#endif /* G_ENABLE_DEBUG */
|
||||||
|
|
||||||
#define __G_SLICE_C__
|
#define __G_SLICE_C__
|
||||||
#include "galiasdef.c"
|
#include "galiasdef.c"
|
||||||
|
@ -71,7 +71,6 @@ typedef enum {
|
|||||||
void g_slice_set_config (GSliceConfig ckey, gint64 value);
|
void g_slice_set_config (GSliceConfig ckey, gint64 value);
|
||||||
gint64 g_slice_get_config (GSliceConfig ckey);
|
gint64 g_slice_get_config (GSliceConfig ckey);
|
||||||
gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
|
gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
|
||||||
void g_slice_debug_tree_statistics (void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user