summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/libsmb_setget.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-11-05 15:54:02 +0100
committerJeremy Allison <jra@samba.org>2014-11-19 20:51:37 +0100
commit86a951b4ff9b3a1bbe03b3448d45f9750c949c00 (patch)
treed5e7587700733208a1d5b1b885e6d51353af3fa7 /source3/libsmb/libsmb_setget.c
parent297d1877614b4f4f33f7e19f2d107feb5fe460ed (diff)
downloadsamba-86a951b4ff9b3a1bbe03b3448d45f9750c949c00.tar.gz
samba-86a951b4ff9b3a1bbe03b3448d45f9750c949c00.tar.xz
samba-86a951b4ff9b3a1bbe03b3448d45f9750c949c00.zip
s3:smbd: improve writecache profiling
In order to have useful profiling counters should never be decremented. We need a separate counter for deallocation events. The current value can be calculated by allocations - deallocations. We also use better names and avoid having an array for the flush reasons. This will simplify further profiling improvements a lot. The value writecache_num_write_caches (this was similar to writecache_allocations) is replaced by writecache_cached_writes, which counts the amount of writes which were completely handled by the cache. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb/libsmb_setget.c')
0 files changed, 0 insertions, 0 deletions