diff options
author | Volker Lendecke <vl@samba.org> | 2014-10-02 13:40:35 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-10-03 19:55:09 +0200 |
commit | f74ac712aea8d354b70966ffd3f617c65a17d8d0 (patch) | |
tree | ecf5bffdaf22326ec8ffc0eb9374bb9eb9751d06 | |
parent | 5254a7e1e5ab216a679bfbf3584bb8a16f502a2b (diff) | |
download | samba-f74ac712aea8d354b70966ffd3f617c65a17d8d0.tar.gz samba-f74ac712aea8d354b70966ffd3f617c65a17d8d0.tar.xz samba-f74ac712aea8d354b70966ffd3f617c65a17d8d0.zip |
profiling: Remove a big DEBUG statement
I would like to have the freedom to play with the profiling implementation.
This is kindof in the way.
This code is from pre-SVN days:
> commit 7914e9351abb5271ebb4990c3b1fe495d15a4eda
> Author: Jeremy Allison <jra@samba.org>
> AuthorDate: Thu Oct 5 18:50:18 2000 +0000
> Commit: Jeremy Allison <jra@samba.org>
> CommitDate: Thu Oct 5 18:50:18 2000 +0000
>
> Herb's fixes for profiling & compiler warnings.
> Jeremy.
Herb, please speak up quickly if you still need this :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/fileio.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index 91b3102f9c..37c3f665c4 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -362,31 +362,6 @@ ssize_t write_file(struct smb_request *req, contend_level2_oplocks_begin(fsp, LEVEL2_CONTEND_WRITE); contend_level2_oplocks_end(fsp, LEVEL2_CONTEND_WRITE); -#ifdef WITH_PROFILE - if (profile_p && profile_p->writecache_total_writes % 500 == 0) { - DEBUG(3,("WRITECACHE: initwrites=%u abutted=%u total=%u \ -nonop=%u allocated=%u active=%u direct=%u perfect=%u readhits=%u\n", - profile_p->writecache_init_writes, - profile_p->writecache_abutted_writes, - profile_p->writecache_total_writes, - profile_p->writecache_non_oplock_writes, - profile_p->writecache_allocated_write_caches, - profile_p->writecache_num_write_caches, - profile_p->writecache_direct_writes, - profile_p->writecache_num_perfect_writes, - profile_p->writecache_read_hits )); - - DEBUG(3,("WRITECACHE: Flushes SEEK=%d, READ=%d, WRITE=%d, READRAW=%d, OPLOCK=%d, CLOSE=%d, SYNC=%d\n", - profile_p->writecache_flushed_writes[SAMBA_SEEK_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_READ_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_WRITE_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_READRAW_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_OPLOCK_RELEASE_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_CLOSE_FLUSH], - profile_p->writecache_flushed_writes[SAMBA_SYNC_FLUSH] )); - } -#endif - if (wcp && req->unread_bytes) { /* If we're using receivefile don't * deal with a write cache. |