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.

161 lines
4.0 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. perfctrs.cpp
  5. Abstract:
  6. SIS Groveler performance counters
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #include "all.hxx"
  14. const _TCHAR *language_codes[num_languages] = {_T("009")};
  15. extern ObjectInformation object_info =
  16. {
  17. PERF_DETAIL_NOVICE,
  18. {
  19. {_T("Groveler"), _T("Single-Instance Store Groveler for one file system partition")}
  20. }
  21. };
  22. CounterInformation counter_info[num_perf_counters] =
  23. {
  24. {
  25. SDF_grovel_time,
  26. PERF_100NSEC_TIMER,
  27. PERF_DETAIL_NOVICE,
  28. {
  29. {_T("% Time Groveling"), _T("Percentage of elapsed time spent groveling this partition")}
  30. }
  31. },
  32. {
  33. SDF_volscan_time,
  34. PERF_100NSEC_TIMER,
  35. PERF_DETAIL_NOVICE,
  36. {
  37. {_T("% Time Scanning Volume"), _T("Percentage of elapsed time spent scanning this partition volume")}
  38. }
  39. },
  40. {
  41. SDF_extract_time,
  42. PERF_100NSEC_TIMER,
  43. PERF_DETAIL_NOVICE,
  44. {
  45. {_T("% Time Extracting Log"), _T("Percentage of elapsed time spent extracting entries from the USN log of this partition")}
  46. }
  47. },
  48. {
  49. SDF_working_time,
  50. PERF_100NSEC_TIMER,
  51. PERF_DETAIL_NOVICE,
  52. {
  53. {_T("% Time Working"), _T("Percentage of elapsed time spent performing work on this partition (sum of % Time Groveling, % Time Scanning Volume, and % Time Extracting Log)")}
  54. }
  55. },
  56. {
  57. SDF_files_hashed,
  58. PERF_COUNTER_BULK_COUNT,
  59. PERF_DETAIL_NOVICE,
  60. {
  61. {_T("Files Hashed"), _T("Count of files on this partition whose hash values have been computed")}
  62. }
  63. },
  64. {
  65. SDF_files_compared,
  66. PERF_COUNTER_BULK_COUNT,
  67. PERF_DETAIL_NOVICE,
  68. {
  69. {_T("Files Compared"), _T("Count of files on this partition that have been compared against other files")}
  70. }
  71. },
  72. {
  73. SDF_files_merged,
  74. PERF_COUNTER_BULK_COUNT,
  75. PERF_DETAIL_NOVICE,
  76. {
  77. {_T("Files Merged"), _T("Count of files on this partition that have been merged with other files")}
  78. }
  79. },
  80. {
  81. SDF_files_scanned,
  82. PERF_COUNTER_BULK_COUNT,
  83. PERF_DETAIL_NOVICE,
  84. {
  85. {_T("Files Scanned"), _T("Count of files and directories on this partition that have been scanned")}
  86. }
  87. },
  88. {
  89. SDF_queue_length,
  90. PERF_COUNTER_LARGE_RAWCOUNT,
  91. PERF_DETAIL_NOVICE,
  92. {
  93. {_T("Queue Length"), _T("Count of files waiting in queue to be hashed")}
  94. }
  95. },
  96. {
  97. SDF_hash_read_time,
  98. PERF_AVERAGE_BULK,
  99. PERF_DETAIL_ADVANCED,
  100. {
  101. {_T("Measured Hash Read Time"), _T("Measured time to perform disk read for hash computation")}
  102. }
  103. },
  104. {
  105. SDF_hash_read_ops,
  106. PERF_AVERAGE_BASE,
  107. PERF_DETAIL_ADVANCED,
  108. {
  109. {_T(""), _T("")}
  110. }
  111. },
  112. {
  113. SDF_compare_read_time,
  114. PERF_AVERAGE_BULK,
  115. PERF_DETAIL_ADVANCED,
  116. {
  117. {_T("Measured Compare Read Time"), _T("Measured time to perform disk read for file comparison")}
  118. }
  119. },
  120. {
  121. SDF_compare_read_ops,
  122. PERF_AVERAGE_BASE,
  123. PERF_DETAIL_ADVANCED,
  124. {
  125. {_T(""), _T("")}
  126. }
  127. },
  128. {
  129. SDF_hash_read_estimate,
  130. PERF_COUNTER_LARGE_RAWCOUNT,
  131. PERF_DETAIL_ADVANCED,
  132. {
  133. {_T("Estimated Hash Read Time"), _T("Estimated time to perform disk read for hash computation")}
  134. }
  135. },
  136. {
  137. SDF_compare_read_estimate,
  138. PERF_COUNTER_LARGE_RAWCOUNT,
  139. PERF_DETAIL_ADVANCED,
  140. {
  141. {_T("Estimated Compare Read Time"), _T("Estimated time to perform disk read for file comparison")}
  142. }
  143. }
  144. };