Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

67 lines
2.5 KiB

//+----------------------------------------------------------------------------
//
// Copyright (C) 2000, Microsoft Corporation
//
// File: DfsStatistics.cxx
//
// Contents: the DFS Statistics
//
// Classes: DfsStatistics
//
// History: Apr. 8 2000, Author: udayh
//
//-----------------------------------------------------------------------------
#include "DfsStatistics.hxx"
#include "dfsinit.hxx"
//
// following are required for logging: dfsdev cleanup
//
#include "dfsstatistics.tmh"
VOID
DfsStatistics::DumpStatistics(
PUNICODE_STRING pLogicalShare )
{
SYSTEMTIME CurrentTime;
GetLocalTime( &CurrentTime );
DFS_TRACE_HIGH( STATISTICS, "Root %wZ\n", pLogicalShare);
DFS_TRACE_HIGH( STATISTICS, "Statisicts dump at %d\\%d\\%d, %d:%d:%d:%d\n",
CurrentTime.wMonth, CurrentTime.wDay, CurrentTime.wYear,
CurrentTime.wHour, CurrentTime.wMinute, CurrentTime.wSecond,
CurrentTime.wMilliseconds );
DFS_TRACE_HIGH( STATISTICS, "Total Referrals %d\n", TotalReferrals );
DFS_TRACE_HIGH( STATISTICS, "Hits %d Misses %d\n", Hits, Misses );
DFS_TRACE_HIGH( STATISTICS, "ServerSite cache Hits %d Misses %d\n", ServerSiteCacheHits, ServerSiteCacheMisses );
DFS_TRACE_HIGH( STATISTICS, "Min Referral Time %d ms\n", MinReferralTime );
DFS_TRACE_HIGH( STATISTICS, "Max Referral Time %d ms\n", MaxReferralTime );
DFS_TRACE_HIGH( STATISTICS, "%d Referrals took longer than %d secs\n",
VeryLargeTimeReferrals, VERY_LARGE_TIME_REFERRAL/1000 );
DFS_TRACE_HIGH( STATISTICS, "%d Referrals took longer than %d secs\n",
LargeTimeReferrals, LARGE_TIME_REFERRAL/1000 );
DFS_TRACE_HIGH( STATISTICS, "%d Referrals took less than %d ms\n",
SmallTimeReferrals, SMALL_TIME_REFERRAL);
DFS_TRACE_HIGH( STATISTICS, "Links Added %d Deleted %d Modified %d\n",
LinksAdded, LinksDeleted, LinksModified);
DFS_TRACE_HIGH( STATISTICS, "Cache Flush interval %d ms\n", DfsServerGlobalData.CacheFlushInterval );
DFS_TRACE_HIGH( STATISTICS, "Forced Cache Flush %d\n", ForcedCacheFlush);
DFS_TRACE_HIGH( STATISTICS, "Statistics Started on %d\\%d\\%d, %d:%d:%d:%d\n",
StartTime.wMonth, StartTime.wDay, StartTime.wYear,
StartTime.wHour, StartTime.wMinute, StartTime.wSecond,
StartTime.wMilliseconds );
};