profiling: Remove a big DEBUG statement
authorVolker Lendecke <vl@samba.org>
Thu, 2 Oct 2014 13:40:35 +0000 (13:40 +0000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Dec 2014 20:11:12 +0000 (21:11 +0100)
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>
(cherry picked from commit f74ac712aea8d354b70966ffd3f617c65a17d8d0)

source3/smbd/fileio.c

index 91b3102f9c51ac64c3701093f53952344cc2d7b1..37c3f665c46c90943c276ac3956528a52c6f6c6f 100644 (file)
@@ -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.