File: statsprofiler.h

package info (click to toggle)
icinga 1.0.2-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 33,952 kB
  • ctags: 13,294
  • sloc: xml: 154,821; ansic: 99,198; sh: 14,585; sql: 5,852; php: 5,126; perl: 2,838; makefile: 1,268
file content (21 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __STATS_PROFILER_INCLUDED__
#define __STATS_PROFILER_INCLUDED__

typedef struct profile_object{

    char* name;
    int count;
    double elapsed;
    struct profile_object* next;

}profile_object;

profile_object* profiled_data_find_last_object();
profile_object* profile_object_create(char * name);
profile_object* profile_object_find_by_name(char * name);
double safe_divide(double x, int y, int reverse);
void profile_object_update_count(char * name, int val);
void profile_object_update_elapsed(char * name, double val);
void profile_data_print();
void profile_data_output_mrtg(char * name,char * delim);
#endif