You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
526 B
C
25 lines
526 B
C
![]()
15 years ago
|
#ifndef _LIGHTTPD_PROFILER_H_
|
||
|
#define _LIGHTTPD_PROFILER_H_
|
||
|
|
||
|
struct profiler_mem;
|
||
|
typedef struct profiler_mem profiler_mem;
|
||
|
|
||
|
struct profiler_mem {
|
||
|
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 */
|
||
![]()
15 years ago
|
void profiler_finish();
|
||
![]()
15 years ago
|
void profiler_dump(); /* dumps memory statistics to stdout */
|
||
![]()
15 years ago
|
void profiler_dump_table();
|
||
15 years ago
|
|
||
![]()
15 years ago
|
#endif
|