Add proper per-file copyright notices/licenses and top-level license.
[bluesky.git] / TBBT / trace_play / profile.h
1 #ifndef PROFILE_H
2 #define PROFILE_H
3
4 /* profile.h: header file for profiling routine
5  * $Id: profile.h,v 1.2 2002/08/21 22:11:40 ningning Exp $
6  * Changes:
7  *
8  *      $Log: profile.h,v $
9  *      Revision 1.2  2002/08/21 22:11:40  ningning
10  *      *** empty log message ***
11  *      
12  */
13
14 #include <sys/time.h>
15 #define MAX_PROFILE_ABOUT_LEN 128
16 typedef struct {
17     struct timeval ts;
18     struct timeval in;
19     int num;
20     char about[MAX_PROFILE_ABOUT_LEN];
21 } profile_t;
22                                                                                                                                    
23 extern inline void start_profile (profile_t * profile);
24 extern inline void end_profile (profile_t * profile);
25 extern inline void print_profile (char * string, profile_t * profile);
26 extern inline void init_profile (char * string, profile_t * profile);
27 #endif