summaryrefslogtreecommitdiff
path: root/source3/profile
diff options
context:
space:
mode:
authorDylan Stephano-Shachter <dshachter@nasuni.com>2019-01-14 13:42:03 -0500
committerJeremy Allison <jra@samba.org>2019-01-16 02:01:55 +0100
commit0b996afec2ba4a4ba4e492123ca03f3b877a9db0 (patch)
treeee99bcf609519da4ab250b81a1cc1a0c07569de1 /source3/profile
parentdd231a16a338cfe63d12cadf0fc3e2ebe7cac828 (diff)
downloadsamba-0b996afec2ba4a4ba4e492123ca03f3b877a9db0.tar.gz
profiling: stop smbprofile from growing unnecessarily
Signed-off-by: Dylan Stephano-Shachter <dshachter@nasuni.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jan 16 02:01:55 CET 2019 on sn-devel-144
Diffstat (limited to 'source3/profile')
-rw-r--r--source3/profile/profile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c
index 5deef81b6df..5e7b69d25d6 100644
--- a/source3/profile/profile.c
+++ b/source3/profile/profile.c
@@ -271,6 +271,11 @@ void smbprofile_dump(void)
TALLOC_FREE(smbprofile_state.internal.te);
+ if (! (smbprofile_state.config.do_count ||
+ smbprofile_state.config.do_times)) {
+ return;
+ }
+
if (smbprofile_state.internal.db == NULL) {
return;
}