📄 smbprofile.h
字号:
unsigned SMBtconX_time; unsigned SMBdskattr_count; /* get disk attributes */ unsigned SMBdskattr_time; unsigned SMBsearch_count; /* search directory */ unsigned SMBsearch_time; /* SBMffirst stats combined with SMBsearch */ unsigned SMBffirst_count; /* find first */ unsigned SMBffirst_time; /* SBMfunique stats combined with SMBsearch */ unsigned SMBfunique_count; /* find unique */ unsigned SMBfunique_time; unsigned SMBfclose_count; /* find close */ unsigned SMBfclose_time; unsigned SMBnttrans_count; /* NT transact */ unsigned SMBnttrans_time; unsigned SMBnttranss_count; /* NT transact secondary */ unsigned SMBnttranss_time; unsigned SMBntcreateX_count; /* NT create and X */ unsigned SMBntcreateX_time; unsigned SMBntcancel_count; /* NT cancel */ unsigned SMBntcancel_time; unsigned SMBntrename_count; /* NT rename file */ unsigned SMBntrename_time; unsigned SMBsplopen_count; /* open print spool file */ unsigned SMBsplopen_time; unsigned SMBsplwr_count; /* write to print spool file */ unsigned SMBsplwr_time; unsigned SMBsplclose_count; /* close print spool file */ unsigned SMBsplclose_time; unsigned SMBsplretq_count; /* return print queue */ unsigned SMBsplretq_time; unsigned SMBsends_count; /* send single block message */ unsigned SMBsends_time; unsigned SMBsendb_count; /* send broadcast message */ unsigned SMBsendb_time; unsigned SMBfwdname_count; /* forward user name */ unsigned SMBfwdname_time; unsigned SMBcancelf_count; /* cancel forward */ unsigned SMBcancelf_time; unsigned SMBgetmac_count; /* get machine name */ unsigned SMBgetmac_time; unsigned SMBsendstrt_count; /* send start of multi-block message */ unsigned SMBsendstrt_time; unsigned SMBsendend_count; /* send end of multi-block message */ unsigned SMBsendend_time; unsigned SMBsendtxt_count; /* send text of multi-block message */ unsigned SMBsendtxt_time; unsigned SMBinvalid_count; /* invalid command */ unsigned SMBinvalid_time;/* Pathworks setdir command */ unsigned pathworks_setdir_count; unsigned pathworks_setdir_time;/* These are the TRANS2 sub commands */ unsigned Trans2_open_count; unsigned Trans2_open_time; unsigned Trans2_findfirst_count; unsigned Trans2_findfirst_time; unsigned Trans2_findnext_count; unsigned Trans2_findnext_time; unsigned Trans2_qfsinfo_count; unsigned Trans2_qfsinfo_time; unsigned Trans2_setfsinfo_count; unsigned Trans2_setfsinfo_time; unsigned Trans2_qpathinfo_count; unsigned Trans2_qpathinfo_time; unsigned Trans2_setpathinfo_count; unsigned Trans2_setpathinfo_time; unsigned Trans2_qfileinfo_count; unsigned Trans2_qfileinfo_time; unsigned Trans2_setfileinfo_count; unsigned Trans2_setfileinfo_time; unsigned Trans2_fsctl_count; unsigned Trans2_fsctl_time; unsigned Trans2_ioctl_count; unsigned Trans2_ioctl_time; unsigned Trans2_findnotifyfirst_count; unsigned Trans2_findnotifyfirst_time; unsigned Trans2_findnotifynext_count; unsigned Trans2_findnotifynext_time; unsigned Trans2_mkdir_count; unsigned Trans2_mkdir_time; unsigned Trans2_session_setup_count; unsigned Trans2_session_setup_time; unsigned Trans2_get_dfs_referral_count; unsigned Trans2_get_dfs_referral_time; unsigned Trans2_report_dfs_inconsistancy_count; unsigned Trans2_report_dfs_inconsistancy_time;/* These are the NT transact sub commands. */ unsigned NT_transact_create_count; unsigned NT_transact_create_time; unsigned NT_transact_ioctl_count; unsigned NT_transact_ioctl_time; unsigned NT_transact_set_security_desc_count; unsigned NT_transact_set_security_desc_time; unsigned NT_transact_notify_change_count; unsigned NT_transact_notify_change_time; unsigned NT_transact_rename_count; unsigned NT_transact_rename_time; unsigned NT_transact_query_security_desc_count; unsigned NT_transact_query_security_desc_time; unsigned NT_transact_get_user_quota_count; unsigned NT_transact_get_user_quota_time; unsigned NT_transact_set_user_quota_count; unsigned NT_transact_set_user_quota_time;/* These are ACL manipulation calls */ unsigned get_nt_acl_count; unsigned get_nt_acl_time; unsigned fget_nt_acl_count; unsigned fget_nt_acl_time; unsigned set_nt_acl_count; unsigned set_nt_acl_time; unsigned fset_nt_acl_count; unsigned fset_nt_acl_time; unsigned chmod_acl_count; unsigned chmod_acl_time; unsigned fchmod_acl_count; unsigned fchmod_acl_time;/* These are nmbd stats */ unsigned name_release_count; unsigned name_release_time; unsigned name_refresh_count; unsigned name_refresh_time; unsigned name_registration_count; unsigned name_registration_time; unsigned node_status_count; unsigned node_status_time; unsigned name_query_count; unsigned name_query_time; unsigned host_announce_count; unsigned host_announce_time; unsigned workgroup_announce_count; unsigned workgroup_announce_time; unsigned local_master_announce_count; unsigned local_master_announce_time; unsigned master_browser_announce_count; unsigned master_browser_announce_time; unsigned lm_host_announce_count; unsigned lm_host_announce_time; unsigned get_backup_list_count; unsigned get_backup_list_time; unsigned reset_browser_count; unsigned reset_browser_time; unsigned announce_request_count; unsigned announce_request_time; unsigned lm_announce_request_count; unsigned lm_announce_request_time; unsigned domain_logon_count; unsigned domain_logon_time; unsigned sync_browse_lists_count; unsigned sync_browse_lists_time; unsigned run_elections_count; unsigned run_elections_time; unsigned election_count; unsigned election_time;};struct profile_header { int prof_shm_magic; int prof_shm_version; struct profile_stats stats;};extern struct profile_header *profile_h;extern struct profile_stats *profile_p;extern struct timeval profile_starttime;extern struct timeval profile_endtime;extern struct timeval profile_starttime_nested;extern struct timeval profile_endtime_nested;extern BOOL do_profile_flag;extern BOOL do_profile_times;/* these are helper macros - do not call them directly in the code * use the DO_PROFILE_* START_PROFILE and END_PROFILE ones * below which test for the profile flage first */#define INC_PROFILE_COUNT(x) profile_p->x++#define DEC_PROFILE_COUNT(x) profile_p->x--#define ADD_PROFILE_COUNT(x,y) profile_p->x += (y)#define PROFILE_TIME \ ((profile_endtime.tv_sec - profile_starttime.tv_sec) *1000000 + \ ((int)profile_endtime.tv_usec - (int)profile_starttime.tv_usec))#define PROFILE_TIME_NESTED \ ((profile_endtime_nested.tv_sec - profile_starttime_nested.tv_sec) *1000000 + \ ((int)profile_endtime_nested.tv_usec - (int)profile_starttime_nested.tv_usec))#ifdef WITH_PROFILE#define DO_PROFILE_INC(x) \ if (do_profile_flag) { \ INC_PROFILE_COUNT(x); \ }#define DO_PROFILE_DEC(x) \ if (do_profile_flag) { \ DEC_PROFILE_COUNT(x); \ }#define DO_PROFILE_DEC_INC(x,y) \ if (do_profile_flag) { \ DEC_PROFILE_COUNT(x); \ INC_PROFILE_COUNT(y); \ }#define DO_PROFILE_ADD(x,n) \ if (do_profile_flag) { \ ADD_PROFILE_COUNT(x,n); \ }#define START_PROFILE(x) \ if (do_profile_flag) { \ if (do_profile_times) \ GetTimeOfDay(&profile_starttime); \ INC_PROFILE_COUNT(x##_count); \ }#define START_PROFILE_NESTED(x) \ if (do_profile_flag) { \ if (do_profile_times) \ GetTimeOfDay(&profile_starttime_nested); \ INC_PROFILE_COUNT(x##_count); \ }#define START_PROFILE_BYTES(x,n) \ if (do_profile_flag) { \ if (do_profile_times) \ GetTimeOfDay(&profile_starttime); \ INC_PROFILE_COUNT(x##_count); \ ADD_PROFILE_COUNT(x##_bytes,n); \ }#define END_PROFILE(x) \ if (do_profile_times) { \ GetTimeOfDay(&profile_endtime); \ ADD_PROFILE_COUNT(x##_time,PROFILE_TIME); \ }#define END_PROFILE_NESTED(x) \ if (do_profile_times) { \ GetTimeOfDay(&profile_endtime_nested); \ ADD_PROFILE_COUNT(x##_time,PROFILE_TIME_NESTED); \ }#else#define DO_PROFILE_INC(x)#define DO_PROFILE_DEC(x)#define DO_PROFILE_DEC_INC(x,y)#define DO_PROFILE_ADD(x,n)#define START_PROFILE(x)#define START_PROFILE_NESTED(x)#define START_PROFILE_BYTES(x,n)#define END_PROFILE(x)#define END_PROFILE_NESTED(x)#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -