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;
|
|
|
|
};
|
|
|
|
|
2009-10-09 13:38:12 +00:00
|
|
|
LI_API void li_profiler_enable(); /* enables the profiler */
|
|
|
|
LI_API void li_profiler_finish();
|
|
|
|
LI_API void li_profiler_dump(); /* dumps memory statistics to stdout */
|
|
|
|
LI_API void li_profiler_dump_table();
|
2008-10-28 21:11:50 +00:00
|
|
|
|
2008-10-17 22:06:06 +00:00
|
|
|
#endif
|