2008-10-17 22:06:06 +00:00
|
|
|
#ifndef _LIGHTTPD_PROFILER_H_
|
|
|
|
#define _LIGHTTPD_PROFILER_H_
|
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
typedef struct liProfilerMem liProfilerMem;
|
2008-10-17 22:06:06 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
struct liProfilerMem {
|
2008-10-17 22:06:06 +00:00
|
|
|
guint64 inuse_bytes;
|
|
|
|
guint64 alloc_times;
|
|
|
|
guint64 alloc_bytes;
|
|
|
|
guint64 calloc_times;
|
|
|
|
guint64 calloc_bytes;
|
|
|
|
guint64 realloc_times;
|
|
|
|
guint64 realloc_bytes;
|
|
|
|
guint64 free_times;
|
|
|
|
guint64 free_bytes;
|
|
|
|
};
|
|
|
|
|
|
|
|
void profiler_enable(); /* enables the profiler */
|
2008-10-18 17:28:37 +00:00
|
|
|
void profiler_finish();
|
2008-10-17 22:06:06 +00:00
|
|
|
void profiler_dump(); /* dumps memory statistics to stdout */
|
2008-10-17 22:42:34 +00:00
|
|
|
void profiler_dump_table();
|
2008-10-28 21:11:50 +00:00
|
|
|
|
2008-10-17 22:06:06 +00:00
|
|
|
#endif
|