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.

165 lines
4.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. perfcount.h
  5. Abstract:
  6. Counter Block definitions for sets of
  7. counters that are supported by IIS 6.
  8. These counter blocks contain the PERF_COUNTER_BLOCK
  9. object as well as an entry for each counter.
  10. Author:
  11. Emily Kruglick (EmilyK) 7-Sept-2000
  12. Revision History:
  13. --*/
  14. #ifndef _PERFCOUNT_H_
  15. #define _PERFCOUNT_H_
  16. //
  17. // Used by the perflib to do the offsets for
  18. // the counters in the counter definitions.
  19. // Used by WAS to put counters work with counters
  20. // stored in the shared memory.
  21. //
  22. //
  23. // Note: These structures should be 8-byte aligned.
  24. // so if you add a counter and it throws this
  25. // of you will need to add another bogus DWORD
  26. // to make sure it stays aligned.
  27. //
  28. typedef struct _W3_COUNTER_BLOCK {
  29. PERF_COUNTER_BLOCK PerfCounterBlock;
  30. ULONGLONG BytesSent;
  31. ULONGLONG BytesReceived;
  32. ULONGLONG BytesTotal;
  33. DWORD FilesSent;
  34. DWORD FilesReceived;
  35. DWORD FilesTotal;
  36. DWORD CurrentAnonymous;
  37. DWORD CurrentNonAnonymous;
  38. DWORD TotalAnonymous;
  39. DWORD TotalNonAnonymous;
  40. DWORD MaxAnonymous;
  41. DWORD MaxNonAnonymous;
  42. DWORD CurrentConnections;
  43. DWORD MaxConnections;
  44. DWORD ConnectionAttempts;
  45. DWORD LogonAttempts;
  46. DWORD TotalOptions;
  47. DWORD TotalGets;
  48. DWORD TotalPosts;
  49. DWORD TotalHeads;
  50. DWORD TotalPuts;
  51. DWORD TotalDeletes;
  52. DWORD TotalTraces;
  53. DWORD TotalMove;
  54. DWORD TotalCopy;
  55. DWORD TotalMkcol;
  56. DWORD TotalPropfind;
  57. DWORD TotalProppatch;
  58. DWORD TotalSearch;
  59. DWORD TotalLock;
  60. DWORD TotalUnlock;
  61. DWORD TotalOthers;
  62. DWORD TotalRequests;
  63. DWORD TotalCGIRequests;
  64. DWORD TotalBGIRequests;
  65. DWORD TotalNotFoundErrors;
  66. DWORD TotalLockedErrors;
  67. DWORD CurrentCGIRequests;
  68. DWORD CurrentBGIRequests;
  69. DWORD MaxCGIRequests;
  70. DWORD MaxBGIRequests;
  71. DWORD CurrentCalAuth;
  72. DWORD MaxCalAuth;
  73. DWORD TotalFailedCalAuth;
  74. DWORD CurrentCalSsl;
  75. DWORD MaxCalSsl;
  76. DWORD TotalFailedCalSsl;
  77. DWORD BlockedRequests;
  78. DWORD AllowedRequests;
  79. DWORD RejectedRequests;
  80. DWORD CurrentBlockedRequests;
  81. DWORD MeasuredBandwidth;
  82. DWORD TotalBlockedBandwidthBytes;
  83. DWORD CurrentBlockedBandwidthBytes;
  84. DWORD ServiceUptime;
  85. DWORD BogusAlignmentDWORD;
  86. } W3_COUNTER_BLOCK, * PW3_COUNTER_BLOCK;
  87. typedef struct _W3_GLOBAL_COUNTER_BLOCK {
  88. PERF_COUNTER_BLOCK PerfCounterBlock;
  89. DWORD CurrentFilesCached;
  90. DWORD TotalFilesCached;
  91. DWORD FileCacheHits;
  92. ULONGLONG CurrentFileCacheMemoryUsage;
  93. ULONGLONG MaxFileCacheMemoryUsage;
  94. DWORD FileCacheMisses;
  95. DWORD FileCacheHitRatio;
  96. DWORD FileCacheFlushes;
  97. DWORD ActiveFlushedFiles;
  98. DWORD TotalFlushedFiles;
  99. DWORD CurrentUrisCached;
  100. DWORD TotalUrisCached;
  101. DWORD UriCacheHits;
  102. DWORD UriCacheMisses;
  103. DWORD UriCacheHitRatio;
  104. DWORD UriCacheFlushes;
  105. DWORD TotalFlushedUris;
  106. DWORD CurrentBlobsCached;
  107. DWORD TotalBlobsCached;
  108. DWORD BlobCacheHits;
  109. DWORD BlobCacheMisses;
  110. DWORD BlobCacheHitRatio;
  111. DWORD BlobCacheFlushes;
  112. DWORD TotalFlushedBlobs;
  113. DWORD UlCurrentUrisCached;
  114. DWORD UlTotalUrisCached;
  115. DWORD UlUriCacheHits;
  116. DWORD UlUriCacheMisses;
  117. DWORD UlUriCacheHitRatio;
  118. DWORD UlUriCacheFlushes;
  119. DWORD UlTotalFlushedUris;
  120. } W3_GLOBAL_COUNTER_BLOCK, * PW3_GLOBAL_COUNTER_BLOCK;
  121. #endif // _PERFCOUNT_H_