summaryrefslogtreecommitdiffstats
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-10-23 18:30:41 +0200
committerJeremy Allison <jra@samba.org>2014-11-19 20:51:36 +0100
commit8622168a4ada99894e2e85f4d46e81a654c33583 (patch)
treed868de83aef25010972204def62da058f27e5152 /source3/include
parent71a9e5da2be8feae2f7cbb248b7c091f435d964e (diff)
downloadsamba-8622168a4ada99894e2e85f4d46e81a654c33583.tar.gz
samba-8622168a4ada99894e2e85f4d46e81a654c33583.tar.xz
samba-8622168a4ada99894e2e85f4d46e81a654c33583.zip
s3:smbprofile: add END_PROFILE_BYTES() marco
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smbprofile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h
index a37ac4f4ca..589bdb6374 100644
--- a/source3/include/smbprofile.h
+++ b/source3/include/smbprofile.h
@@ -953,6 +953,9 @@ static inline uint64_t profile_timestamp(void)
#define END_PROFILE(x) \
END_PROFILE_RAW(x, __profstamp_##x, x##_time)
+#define END_PROFILE_BYTES(x) \
+ END_PROFILE_RAW(x, __profstamp_##x, x##_time)
+
#else /* WITH_PROFILE */
#define DO_PROFILE_INC(x)
@@ -964,6 +967,7 @@ static inline uint64_t profile_timestamp(void)
#define START_PROFILE_BYTES(x,n)
#define END_PROFILE_STAMP(x, _stamp)
#define END_PROFILE(x)
+#define END_PROFILE_BYTES(x)
#endif /* WITH_PROFILE */