OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // NOTE: No header guards are used, since this file is intended to be expanded | |
6 // directly into load_log.h. DO NOT include this file anywhere else. | |
7 | |
8 // -------------------------------------------------------------------------- | |
9 // General pseudo-events | |
10 // -------------------------------------------------------------------------- | |
11 | |
12 // Something got cancelled (we determine what is cancelled based on the | |
13 // log context around it.) | |
14 EVENT_TYPE(CANCELLED) | |
15 | |
16 // ------------------------------------------------------------------------ | |
17 // HostResolverImpl | |
18 // ------------------------------------------------------------------------ | |
19 | |
20 // The start/end of a host resolve (DNS) request. | |
21 EVENT_TYPE(HOST_RESOLVER_IMPL) | |
22 | |
23 // The start/end of HostResolver::Observer::OnStartResolution. | |
24 EVENT_TYPE(HOST_RESOLVER_IMPL_OBSERVER_ONSTART) | |
25 | |
26 // The start/end of HostResolver::Observer::OnFinishResolutionWithStatus | |
27 EVENT_TYPE(HOST_RESOLVER_IMPL_OBSERVER_ONFINISH) | |
28 | |
29 // The start/end of HostResolver::Observer::OnCancelResolution. | |
30 EVENT_TYPE(HOST_RESOLVER_IMPL_OBSERVER_ONCANCEL) | |
31 | |
32 // ------------------------------------------------------------------------ | |
33 // InitProxyResolver | |
34 // ------------------------------------------------------------------------ | |
35 | |
36 // The start/end of auto-detect + custom PAC URL configuration. | |
37 EVENT_TYPE(INIT_PROXY_RESOLVER) | |
38 | |
39 // The start/end of download of a PAC script. This could be the well-known | |
40 // WPAD URL (if testing auto-detect), or a custom PAC URL. | |
41 EVENT_TYPE(INIT_PROXY_RESOLVER_FETCH_PAC_SCRIPT) | |
42 | |
43 // The start/end of the testing of a PAC script (trying to parse the fetched | |
44 // file as javascript). | |
45 EVENT_TYPE(INIT_PROXY_RESOLVER_SET_PAC_SCRIPT) | |
46 | |
47 // ------------------------------------------------------------------------ | |
48 // ProxyService | |
49 // ------------------------------------------------------------------------ | |
50 | |
51 // The start/end of a proxy resolve request. | |
52 EVENT_TYPE(PROXY_SERVICE) | |
53 | |
54 // The time while a request is waiting on InitProxyResolver to configure | |
55 // against either WPAD or custom PAC URL. The specifics on this time | |
56 // are found from ProxyService::init_proxy_resolver_log(). | |
57 EVENT_TYPE(PROXY_SERVICE_WAITING_FOR_INIT_PAC) | |
58 | |
59 // The time taken to fetch the system proxy configuration. | |
60 EVENT_TYPE(PROXY_SERVICE_POLL_CONFIG_SERVICE_FOR_CHANGES) | |
61 | |
62 // ------------------------------------------------------------------------ | |
63 // Proxy Resolver | |
64 // ------------------------------------------------------------------------ | |
65 | |
66 // Measures the time taken to execute the "myIpAddress()" javascript binding. | |
67 EVENT_TYPE(PROXY_RESOLVER_V8_MY_IP_ADDRESS) | |
68 | |
69 // Measures the time taken to execute the "myIpAddressEx()" javascript binding. | |
70 EVENT_TYPE(PROXY_RESOLVER_V8_MY_IP_ADDRESS_EX) | |
71 | |
72 // Measures the time taken to execute the "dnsResolve()" javascript binding. | |
73 EVENT_TYPE(PROXY_RESOLVER_V8_DNS_RESOLVE) | |
74 | |
75 // Measures the time taken to execute the "dnsResolveEx()" javascript binding. | |
76 EVENT_TYPE(PROXY_RESOLVER_V8_DNS_RESOLVE_EX) | |
77 | |
78 // Measures the time that a proxy resolve request was stalled waiting for the | |
79 // proxy resolver thread to free-up. | |
80 EVENT_TYPE(WAITING_FOR_SINGLE_PROXY_RESOLVER_THREAD) | |
81 | |
82 // ------------------------------------------------------------------------ | |
83 // ClientSocket::Connect | |
84 // ------------------------------------------------------------------------ | |
85 | |
86 // The start/end of a TCP connect(). | |
87 EVENT_TYPE(TCP_CONNECT) | |
88 | |
89 // The start/end of a SOCKS connect(). | |
90 EVENT_TYPE(SOCKS_CONNECT) | |
91 | |
92 // The start/end of a SOCKS5 connect(). | |
93 EVENT_TYPE(SOCKS5_CONNECT) | |
94 | |
95 // The start/end of a SSL connect(). | |
96 EVENT_TYPE(SSL_CONNECT) | |
97 | |
98 // ------------------------------------------------------------------------ | |
99 // ClientSocketPoolBase::ConnectJob | |
100 // ------------------------------------------------------------------------ | |
101 | |
102 // The start/end of a ConnectJob. | |
103 EVENT_TYPE(SOCKET_POOL_CONNECT_JOB) | |
104 | |
105 // Whether the connect job timed out. | |
106 EVENT_TYPE(SOCKET_POOL_CONNECT_JOB_TIMED_OUT) | |
107 | |
108 // ------------------------------------------------------------------------ | |
109 // ClientSocketPoolBaseHelper | |
110 // ------------------------------------------------------------------------ | |
111 | |
112 // The start/end of a client socket pool request for a socket. | |
113 EVENT_TYPE(SOCKET_POOL) | |
114 | |
115 // The request stalled because there are too many sockets in the pool. | |
116 EVENT_TYPE(SOCKET_POOL_STALLED_MAX_SOCKETS) | |
117 | |
118 // The request stalled because there are too many sockets in the group. | |
119 EVENT_TYPE(SOCKET_POOL_STALLED_MAX_SOCKETS_PER_GROUP) | |
120 | |
121 // A backup socket is created due to slow connect | |
122 EVENT_TYPE(SOCKET_BACKUP_CREATED) | |
123 | |
124 // A backup socket is created due to slow connect | |
125 EVENT_TYPE(SOCKET_BACKUP_TIMER_EXTENDED) | |
126 | |
127 // ------------------------------------------------------------------------ | |
128 // URLRequest | |
129 // ------------------------------------------------------------------------ | |
130 | |
131 // Measures the time between URLRequest::Start() and | |
132 // URLRequest::ResponseStarted(). | |
133 EVENT_TYPE(URL_REQUEST_START) | |
134 | |
135 // ------------------------------------------------------------------------ | |
136 // HttpCache | |
137 // ------------------------------------------------------------------------ | |
138 | |
139 // Measures the time while opening a disk cache entry. | |
140 EVENT_TYPE(HTTP_CACHE_OPEN_ENTRY) | |
141 | |
142 // Measures the time while creating a disk cache entry. | |
143 EVENT_TYPE(HTTP_CACHE_CREATE_ENTRY) | |
144 | |
145 // Measures the time while deleting a disk cache entry. | |
146 EVENT_TYPE(HTTP_CACHE_DOOM_ENTRY) | |
147 | |
148 // Measures the time while reading the response info from a disk cache entry. | |
149 EVENT_TYPE(HTTP_CACHE_READ_INFO) | |
150 | |
151 // Measures the time that an HttpCache::Transaction is stalled waiting for | |
152 // the cache entry to become available (for example if we are waiting for | |
153 // exclusive access to an existing entry). | |
154 EVENT_TYPE(HTTP_CACHE_WAITING) | |
155 | |
156 // ------------------------------------------------------------------------ | |
157 // HttpNetworkTransaction | |
158 // ------------------------------------------------------------------------ | |
159 | |
160 // Measures the time taken to send the request to the server. | |
161 EVENT_TYPE(HTTP_TRANSACTION_SEND_REQUEST) | |
162 | |
163 // Measures the time to read HTTP response headers from the server. | |
164 EVENT_TYPE(HTTP_TRANSACTION_READ_HEADERS) | |
165 | |
166 // Measures the time to read the entity body from the server. | |
167 EVENT_TYPE(HTTP_TRANSACTION_READ_BODY) | |
168 | |
169 // Measures the time taken to read the response out of the socket before | |
170 // restarting for authentication, on keep alive connections. | |
171 EVENT_TYPE(HTTP_TRANSACTION_DRAIN_BODY_FOR_AUTH_RESTART) | |
172 | |
173 // ------------------------------------------------------------------------ | |
174 // SpdyNetworkTransaction | |
175 // ------------------------------------------------------------------------ | |
176 | |
177 // Measures the time taken to get a spdy stream. | |
178 EVENT_TYPE(SPDY_TRANSACTION_INIT_CONNECTION) | |
179 | |
180 // Measures the time taken to send the request to the server. | |
181 EVENT_TYPE(SPDY_TRANSACTION_SEND_REQUEST) | |
182 | |
183 // Measures the time to read HTTP response headers from the server. | |
184 EVENT_TYPE(SPDY_TRANSACTION_READ_HEADERS) | |
185 | |
186 // Measures the time to read the entity body from the server. | |
187 EVENT_TYPE(SPDY_TRANSACTION_READ_BODY) | |
188 | |
189 // ------------------------------------------------------------------------ | |
190 // SpdyStream | |
191 // ------------------------------------------------------------------------ | |
192 | |
193 // Measures the time taken to send headers on a stream. | |
194 EVENT_TYPE(SPDY_STREAM_SEND_HEADERS) | |
195 | |
196 // Measures the time taken to send the body (e.g. a POST) on a stream. | |
197 EVENT_TYPE(SPDY_STREAM_SEND_BODY) | |
198 | |
199 // Measures the time taken to read headers on a stream. | |
200 EVENT_TYPE(SPDY_STREAM_READ_HEADERS) | |
201 | |
202 // Measures the time taken to read the body on a stream. | |
203 EVENT_TYPE(SPDY_STREAM_READ_BODY) | |
204 | |
205 // Logs that a stream attached to a pushed stream. | |
206 EVENT_TYPE(SPDY_STREAM_ADOPTED_PUSH_STREAM) | |
207 | |
208 // ------------------------------------------------------------------------ | |
209 // HttpStreamParser | |
210 // ------------------------------------------------------------------------ | |
211 | |
212 // Measures the time to read HTTP response headers from the server. | |
213 EVENT_TYPE(HTTP_STREAM_PARSER_READ_HEADERS) | |
214 | |
215 // ------------------------------------------------------------------------ | |
216 // SocketStream | |
217 // ------------------------------------------------------------------------ | |
218 | |
219 // Measures the time between SocketStream::Connect() and | |
220 // SocketStream::DidEstablishConnection() | |
221 EVENT_TYPE(SOCKET_STREAM_CONNECT) | |
222 | |
223 // A message sent on the SocketStream. | |
224 EVENT_TYPE(SOCKET_STREAM_SENT) | |
225 | |
226 // A message received on the SocketStream. | |
227 EVENT_TYPE(SOCKET_STREAM_RECEIVED) | |
228 | |
229 // ------------------------------------------------------------------------ | |
230 // SOCKS5ClientSocket | |
231 // ------------------------------------------------------------------------ | |
232 | |
233 // The time spent sending the "greeting" to the SOCKS server. | |
234 EVENT_TYPE(SOCKS5_GREET_WRITE) | |
235 | |
236 // The time spent waiting for the "greeting" response from the SOCKS server. | |
237 EVENT_TYPE(SOCKS5_GREET_READ) | |
238 | |
239 // The time spent sending the CONNECT request to the SOCKS server. | |
240 EVENT_TYPE(SOCKS5_HANDSHAKE_WRITE) | |
241 | |
242 // The time spent waiting for the response to the CONNECT request. | |
243 EVENT_TYPE(SOCKS5_HANDSHAKE_READ) | |
OLD | NEW |