1 //------------------------------------------------------------------------------
2 // <copyright from='1997' to='2001' company='Microsoft Corporation'>
3 //    Copyright (c) Microsoft Corporation. All Rights Reserved.
4 //    Information Contained Herein is Proprietary and Confidential.
5 // </copyright>
6 //------------------------------------------------------------------------------
7 
8 /*
9  * PerfCounters class
10  */
11 namespace System.Web {
12 
13     // Global enums
14     internal enum GlobalPerfCounter {
15 
16         APPLICATION_RESTARTS                               = 0,
17         APPLICATIONS_RUNNING                               = 1,
18         REQUESTS_DISCONNECTED                              = 2,
19         REQUEST_EXECUTION_TIME                             = 3,
20         REQUESTS_REJECTED                                  = 4,
21         REQUESTS_QUEUED                                    = 5,
22         WPS_RUNNING                                        = 6,
23         WPS_RESTARTS                                       = 7,
24         REQUEST_WAIT_TIME                                  = 8,
25         STATE_SERVER_SESSIONS_ACTIVE                       = 9,
26         STATE_SERVER_SESSIONS_ABANDONED                    = 10,
27         STATE_SERVER_SESSIONS_TIMED_OUT                    = 11,
28         STATE_SERVER_SESSIONS_TOTAL                        = 12,
29         REQUESTS_CURRENT                                   = 13,
30         GLOBAL_AUDIT_SUCCESS                               = 14,
31         GLOBAL_AUDIT_FAIL                                  = 15,
32         GLOBAL_EVENTS_ERROR                                = 16,
33         GLOBAL_EVENTS_HTTP_REQ_ERROR                       = 17,
34         GLOBAL_EVENTS_HTTP_INFRA_ERROR                     = 18,
35         REQUESTS_IN_NATIVE_QUEUE                           = 19,
36 
37     }
38 
39     internal enum AppPerfCounter {
40 
41         ANONYMOUS_REQUESTS                                 = 20,
42         TOTAL_CACHE_ENTRIES                                = 21,
43         TOTAL_CACHE_TURNOVER_RATE                          = 22,
44         TOTAL_CACHE_HITS                                   = 23,
45         TOTAL_CACHE_MISSES                                 = 24,
46         TOTAL_CACHE_RATIO_BASE                             = 25,
47         API_CACHE_ENTRIES                                  = 26,
48         API_CACHE_TURNOVER_RATE                            = 27,
49         API_CACHE_HITS                                     = 28,
50         API_CACHE_MISSES                                   = 29,
51         API_CACHE_RATIO_BASE                               = 30,
52         OUTPUT_CACHE_ENTRIES                               = 31,
53         OUTPUT_CACHE_TURNOVER_RATE                         = 32,
54         OUTPUT_CACHE_HITS                                  = 33,
55         OUTPUT_CACHE_MISSES                                = 34,
56         OUTPUT_CACHE_RATIO_BASE                            = 35,
57         COMPILATIONS                                       = 36,
58         DEBUGGING_REQUESTS                                 = 37,
59         ERRORS_PRE_PROCESSING                              = 38,
60         ERRORS_COMPILING                                   = 39,
61         ERRORS_DURING_REQUEST                              = 40,
62         ERRORS_UNHANDLED                                   = 41,
63         ERRORS_TOTAL                                       = 42,
64         PIPELINES                                          = 43,
65         REQUEST_BYTES_IN                                   = 44,
66         REQUEST_BYTES_OUT                                  = 45,
67         REQUESTS_EXECUTING                                 = 46,
68         REQUESTS_FAILED                                    = 47,
69         REQUESTS_NOT_FOUND                                 = 48,
70         REQUESTS_NOT_AUTHORIZED                            = 49,
71         REQUESTS_IN_APPLICATION_QUEUE                      = 50,
72         REQUESTS_TIMED_OUT                                 = 51,
73         REQUESTS_SUCCEDED                                  = 52,
74         REQUESTS_TOTAL                                     = 53,
75         SESSIONS_ACTIVE                                    = 54,
76         SESSIONS_ABANDONED                                 = 55,
77         SESSIONS_TIMED_OUT                                 = 56,
78         SESSIONS_TOTAL                                     = 57,
79         TRANSACTIONS_ABORTED                               = 58,
80         TRANSACTIONS_COMMITTED                             = 59,
81         TRANSACTIONS_PENDING                               = 60,
82         TRANSACTIONS_TOTAL                                 = 61,
83         SESSION_STATE_SERVER_CONNECTIONS                   = 62,
84         SESSION_SQL_SERVER_CONNECTIONS                     = 63,
85         EVENTS_TOTAL                                       = 64,
86         EVENTS_APP                                         = 65,
87         EVENTS_ERROR                                       = 66,
88         EVENTS_HTTP_REQ_ERROR                              = 67,
89         EVENTS_HTTP_INFRA_ERROR                            = 68,
90         EVENTS_WEB_REQ                                     = 69,
91         AUDIT_SUCCESS                                      = 70,
92         AUDIT_FAIL                                         = 71,
93         MEMBER_SUCCESS                                     = 72,
94         MEMBER_FAIL                                        = 73,
95         FORMS_AUTH_SUCCESS                                 = 74,
96         FORMS_AUTH_FAIL                                    = 75,
97         VIEWSTATE_MAC_FAIL                                 = 76,
98         APP_REQUEST_EXEC_TIME                              = 77,
99         APP_REQUEST_DISCONNECTED                           = 78,
100         APP_REQUESTS_REJECTED                              = 79,
101         APP_REQUEST_WAIT_TIME                              = 80,
102         CACHE_PERCENT_MACH_MEM_LIMIT_USED                  = 81,
103         CACHE_PERCENT_MACH_MEM_LIMIT_USED_BASE             = 82,
104         CACHE_PERCENT_PROC_MEM_LIMIT_USED                  = 83,
105         CACHE_PERCENT_PROC_MEM_LIMIT_USED_BASE             = 84,
106         CACHE_TOTAL_TRIMS                                  = 85,
107         CACHE_API_TRIMS                                    = 86,
108         CACHE_OUTPUT_TRIMS                                 = 87,
109         APP_CPU_USED                                       = 88,
110         APP_CPU_USED_BASE                                  = 89,
111         APP_MEMORY_USED                                    = 90,
112         REQUEST_BYTES_IN_WEBSOCKETS                        = 91,
113         REQUEST_BYTES_OUT_WEBSOCKETS                       = 92,
114         REQUESTS_EXECUTING_WEBSOCKETS                      = 93,
115         REQUESTS_FAILED_WEBSOCKETS                         = 94,
116         REQUESTS_SUCCEEDED_WEBSOCKETS                      = 95,
117         REQUESTS_TOTAL_WEBSOCKETS                          = 96,
118 
119     }
120 
121     // StateService enums
122     internal enum StateServicePerfCounter {
123 
124         STATE_SERVICE_SESSIONS_ACTIVE                      = 97,
125         STATE_SERVICE_SESSIONS_ABANDONED                   = 98,
126         STATE_SERVICE_SESSIONS_TIMED_OUT                   = 99,
127         STATE_SERVICE_SESSIONS_TOTAL                       = 100,
128 
129     }
130 }
131 
132