mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
profiling: Make WITH_PROFILE span more in smbprofile.h
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 3 22:17:46 CEST 2014 on sn-devel-104
This commit is contained in:
committed by
Jeremy Allison
parent
f74ac712ae
commit
5496270d0f
@ -21,6 +21,8 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifdef WITH_PROFILE
|
||||
|
||||
/* this file defines the profile structure in the profile shared
|
||||
memory area */
|
||||
|
||||
@ -876,8 +878,6 @@ extern struct profile_stats *profile_p;
|
||||
extern bool do_profile_flag;
|
||||
extern bool do_profile_times;
|
||||
|
||||
#ifdef WITH_PROFILE
|
||||
|
||||
/* these are helper macros - do not call them directly in the code
|
||||
* use the DO_PROFILE_* START_PROFILE and END_PROFILE ones
|
||||
* below which test for the profile flags first
|
||||
@ -964,6 +964,7 @@ static inline uint64_t profile_timestamp(void)
|
||||
#define START_PROFILE_BYTES(x,n)
|
||||
#define END_PROFILE_STAMP(x, _stamp)
|
||||
#define END_PROFILE(x)
|
||||
|
||||
#endif /* WITH_PROFILE */
|
||||
|
||||
/* The following definitions come from profile/profile.c */
|
||||
|
Reference in New Issue
Block a user