Watt-32 tcp/ip  2.2 dev-rel.10
profile.h
Go to the documentation of this file.
1 
3 #ifndef _w32_PROFILE_H
4 #define _w32_PROFILE_H
5 
6 #if defined(USE_PROFILER)
7  #define profile_start W32_NAMESPACE (profile_start)
8  #define profile_stop W32_NAMESPACE (profile_stop)
9  #define profile_init W32_NAMESPACE (profile_init)
10  #define profile_on W32_NAMESPACE (profile_on)
11  #define profile_dump W32_NAMESPACE (profile_dump)
12  #define profile_recv W32_NAMESPACE (profile_recv)
13  #define profile_file W32_NAMESPACE (profile_file)
14  #define profile_enable W32_NAMESPACE (profile_enable)
15 
16  extern BOOL profile_enable;
17  extern char profile_file [MAX_PATHLEN+1];
18 
19  extern void profile_start (const char *where);
20  extern void profile_stop (void);
21  extern int profile_init (void);
22  extern int profile_on (void);
23  extern void profile_dump (const uint64 *data, size_t num_elem);
24  extern void profile_recv (uint64 put, uint64 get);
25 
26  #define PROFILE_START(func) profile_start (func)
27  #define PROFILE_STOP() profile_stop()
28  #define PROFILE_RECV(put,get) profile_recv (put,get)
29 
30 #else
31  #define PROFILE_START(func) ((void)0)
32  #define PROFILE_STOP() ((void)0)
33  #define PROFILE_RECV(put,get) ((void)0)
34 #endif
35 
36 #endif
unsigned long long uint64
our unsigned "long long" type
Definition: wattcp.h:60