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

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 2000, Microsoft Corporation
  4. //
  5. // File: DfsStatistics.cxx
  6. //
  7. // Contents: the DFS Statistics
  8. //
  9. // Classes: DfsStatistics
  10. //
  11. // History: Apr. 8 2000, Author: udayh
  12. //
  13. //-----------------------------------------------------------------------------
  14. #include "DfsStatistics.hxx"
  15. #include "dfsinit.hxx"
  16. //
  17. // following are required for logging: dfsdev cleanup
  18. //
  19. #include "dfsstatistics.tmh"
  20. VOID
  21. DfsStatistics::DumpStatistics(
  22. PUNICODE_STRING pLogicalShare )
  23. {
  24. SYSTEMTIME CurrentTime;
  25. GetLocalTime( &CurrentTime );
  26. DFS_TRACE_HIGH( STATISTICS, "Root %wZ\n", pLogicalShare);
  27. DFS_TRACE_HIGH( STATISTICS, "Statisicts dump at %d\\%d\\%d, %d:%d:%d:%d\n",
  28. CurrentTime.wMonth, CurrentTime.wDay, CurrentTime.wYear,
  29. CurrentTime.wHour, CurrentTime.wMinute, CurrentTime.wSecond,
  30. CurrentTime.wMilliseconds );
  31. DFS_TRACE_HIGH( STATISTICS, "Total Referrals %d\n", TotalReferrals );
  32. DFS_TRACE_HIGH( STATISTICS, "Hits %d Misses %d\n", Hits, Misses );
  33. DFS_TRACE_HIGH( STATISTICS, "ServerSite cache Hits %d Misses %d\n", ServerSiteCacheHits, ServerSiteCacheMisses );
  34. DFS_TRACE_HIGH( STATISTICS, "Min Referral Time %d ms\n", MinReferralTime );
  35. DFS_TRACE_HIGH( STATISTICS, "Max Referral Time %d ms\n", MaxReferralTime );
  36. DFS_TRACE_HIGH( STATISTICS, "%d Referrals took longer than %d secs\n",
  37. VeryLargeTimeReferrals, VERY_LARGE_TIME_REFERRAL/1000 );
  38. DFS_TRACE_HIGH( STATISTICS, "%d Referrals took longer than %d secs\n",
  39. LargeTimeReferrals, LARGE_TIME_REFERRAL/1000 );
  40. DFS_TRACE_HIGH( STATISTICS, "%d Referrals took less than %d ms\n",
  41. SmallTimeReferrals, SMALL_TIME_REFERRAL);
  42. DFS_TRACE_HIGH( STATISTICS, "Links Added %d Deleted %d Modified %d\n",
  43. LinksAdded, LinksDeleted, LinksModified);
  44. DFS_TRACE_HIGH( STATISTICS, "Cache Flush interval %d ms\n", DfsServerGlobalData.CacheFlushInterval );
  45. DFS_TRACE_HIGH( STATISTICS, "Forced Cache Flush %d\n", ForcedCacheFlush);
  46. DFS_TRACE_HIGH( STATISTICS, "Statistics Started on %d\\%d\\%d, %d:%d:%d:%d\n",
  47. StartTime.wMonth, StartTime.wDay, StartTime.wYear,
  48. StartTime.wHour, StartTime.wMinute, StartTime.wSecond,
  49. StartTime.wMilliseconds );
  50. };