diff options
author | Ira Cooper <samba@ira.wakeful.net> | 2010-07-01 17:51:41 -0400 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-07-07 18:06:59 -0700 |
commit | 90b1a1d29623c6c2abc86e2571b535a7832dd376 (patch) | |
tree | 17f897993f4db085ea4bc573a251263f56cf0fe2 /source3/utils/status_profile.c | |
parent | 609b8656910eccbb409b58050c306798be22a078 (diff) | |
download | samba-90b1a1d29623c6c2abc86e2571b535a7832dd376.tar.gz |
s3: Add SMB2 performance counters.
A performance counter was added for every base type of SMB2 op.
Diffstat (limited to 'source3/utils/status_profile.c')
-rw-r--r-- | source3/utils/status_profile.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/source3/utils/status_profile.c b/source3/utils/status_profile.c index a51537d3da8..d39ae2d0741 100644 --- a/source3/utils/status_profile.c +++ b/source3/utils/status_profile.c @@ -400,7 +400,48 @@ bool status_profile_dump(bool verbose) d_printf("run_elections_time: %u\n", profile_p->run_elections_time); d_printf("election_count: %u\n", profile_p->election_count); d_printf("election_time: %u\n", profile_p->election_time); + profile_separator("SMB2 Calls"); + d_printf("smb2_negprot_count: %u\n", profile_p->smb2_negprot_count); + d_printf("smb2_negprot_time: %u\n", profile_p->smb2_negprot_time); + d_printf("smb2_sesssetup_count: %u\n", profile_p->smb2_sesssetup_count); + d_printf("smb2_sesssetup_time: %u\n", profile_p->smb2_sesssetup_time); + d_printf("smb2_logoff_count: %u\n", profile_p->smb2_logoff_count); + d_printf("smb2_logoff_time: %u\n", profile_p->smb2_logoff_time); + d_printf("smb2_tcon_count: %u\n", profile_p->smb2_tcon_count); + d_printf("smb2_tcon_time: %u\n", profile_p->smb2_tcon_time); + d_printf("smb2_tdis_count: %u\n", profile_p->smb2_tdis_count); + d_printf("smb2_tdis_time: %u\n", profile_p->smb2_tdis_time); + d_printf("smb2_create_count: %u\n", profile_p->smb2_create_count); + d_printf("smb2_create_time: %u\n", profile_p->smb2_create_time); + d_printf("smb2_close_count: %u\n", profile_p->smb2_close_count); + d_printf("smb2_close_time: %u\n", profile_p->smb2_close_time); + d_printf("smb2_flush_count: %u\n", profile_p->smb2_flush_count); + d_printf("smb2_flush_time: %u\n", profile_p->smb2_flush_time); + d_printf("smb2_read_count: %u\n", profile_p->smb2_read_count); + d_printf("smb2_read_time: %u\n", profile_p->smb2_read_time); + d_printf("smb2_write_count: %u\n", profile_p->smb2_write_count); + d_printf("smb2_write_time: %u\n", profile_p->smb2_write_time); + d_printf("smb2_lock_count: %u\n", profile_p->smb2_lock_count); + d_printf("smb2_lock_time: %u\n", profile_p->smb2_lock_time); + d_printf("smb2_ioctl_count: %u\n", profile_p->smb2_ioctl_count); + d_printf("smb2_ioctl_time: %u\n", profile_p->smb2_ioctl_time); + d_printf("smb2_cancel_count: %u\n", profile_p->smb2_cancel_count); + d_printf("smb2_cancel_time: %u\n", profile_p->smb2_cancel_time); + d_printf("smb2_keepalive_count: %u\n", profile_p->smb2_keepalive_count); + d_printf("smb2_keepalive_time: %u\n", profile_p->smb2_keepalive_time); + d_printf("smb2_find_count: %u\n", profile_p->smb2_find_count); + d_printf("smb2_find_time: %u\n", profile_p->smb2_find_time); + d_printf("smb2_notify_count: %u\n", profile_p->smb2_notify_count); + d_printf("smb2_notify_time: %u\n", profile_p->smb2_notify_time); + d_printf("smb2_getinfo_count: %u\n", profile_p->smb2_getinfo_count); + d_printf("smb2_getinfo_time: %u\n", profile_p->smb2_getinfo_time); + d_printf("smb2_setinfo_count: %u\n", profile_p->smb2_setinfo_count); + d_printf("smb2_setinfo_time: %u\n", profile_p->smb2_setinfo_time); + d_printf("smb2_break_count: %u\n", profile_p->smb2_break_count); + d_printf("smb2_break_time: %u\n", profile_p->smb2_break_time); + #else /* WITH_PROFILE */ + fprintf(stderr, "Profile data unavailable\n"); #endif /* WITH_PROFILE */ |