Report post-page load CPU usage using diagnostic logging
[WebKit-https.git] / Source / WebCore / page / DiagnosticLoggingKeys.cpp
1 /*
2  * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 #include "config.h"
27 #include "DiagnosticLoggingKeys.h"
28
29 namespace WebCore {
30
31 String DiagnosticLoggingKeys::mediaLoadedKey()
32 {
33     return ASCIILiteral("mediaLoaded");
34 }
35
36 String DiagnosticLoggingKeys::mediaLoadingFailedKey()
37 {
38     return ASCIILiteral("mediaFailedLoading");
39 }
40
41 String DiagnosticLoggingKeys::missingValidatorFieldsKey()
42 {
43     return ASCIILiteral("missingValidatorFields");
44 }
45
46 String DiagnosticLoggingKeys::pluginLoadedKey()
47 {
48     return ASCIILiteral("pluginLoaded");
49 }
50
51 String DiagnosticLoggingKeys::pluginLoadingFailedKey()
52 {
53     return ASCIILiteral("pluginFailedLoading");
54 }
55
56 String DiagnosticLoggingKeys::postPageLoadKey()
57 {
58     return ASCIILiteral("postPageLoad");
59 }
60
61 String DiagnosticLoggingKeys::provisionalLoadKey()
62 {
63     return ASCIILiteral("provisionalLoad");
64 }
65
66 String DiagnosticLoggingKeys::pageContainsPluginKey()
67 {
68     return ASCIILiteral("pageContainsPlugin");
69 }
70
71 String DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey()
72 {
73     return ASCIILiteral("pageContainsAtLeastOnePlugin");
74 }
75
76 String DiagnosticLoggingKeys::pageContainsMediaEngineKey()
77 {
78     return ASCIILiteral("pageContainsMediaEngine");
79 }
80
81 String DiagnosticLoggingKeys::pageContainsAtLeastOneMediaEngineKey()
82 {
83     return ASCIILiteral("pageContainsAtLeastOneMediaEngine");
84 }
85
86 String DiagnosticLoggingKeys::successKey()
87 {
88     return ASCIILiteral("success");
89 }
90
91 String DiagnosticLoggingKeys::failureKey()
92 {
93     return ASCIILiteral("failure");
94 }
95
96 String DiagnosticLoggingKeys::pageLoadedKey()
97 {
98     return ASCIILiteral("pageLoaded");
99 }
100
101 String DiagnosticLoggingKeys::playedKey()
102 {
103     return ASCIILiteral("played");
104 }
105
106 String DiagnosticLoggingKeys::engineFailedToLoadKey()
107 {
108     return ASCIILiteral("engineFailedToLoad");
109 }
110
111 String DiagnosticLoggingKeys::entryRightlyNotWarmedUpKey()
112 {
113     return ASCIILiteral("entryRightlyNotWarmedUp");
114 }
115
116 String DiagnosticLoggingKeys::entryWronglyNotWarmedUpKey()
117 {
118     return ASCIILiteral("entryWronglyNotWarmedUp");
119 }
120
121 String DiagnosticLoggingKeys::navigationKey()
122 {
123     return ASCIILiteral("navigation");
124 }
125
126 String DiagnosticLoggingKeys::needsRevalidationKey()
127 {
128     return ASCIILiteral("needsRevalidation");
129 }
130
131 String DiagnosticLoggingKeys::networkCacheKey()
132 {
133     return ASCIILiteral("networkCache");
134 }
135
136 String DiagnosticLoggingKeys::networkKey()
137 {
138     return ASCIILiteral("network");
139 }
140
141 String DiagnosticLoggingKeys::networkProcessCrashedKey()
142 {
143     return ASCIILiteral("networkProcessCrashed");
144 }
145
146 String DiagnosticLoggingKeys::neverSeenBeforeKey()
147 {
148     return ASCIILiteral("neverSeenBefore");
149 }
150
151 String DiagnosticLoggingKeys::noCacheKey()
152 {
153     return ASCIILiteral("noCache");
154 }
155
156 String DiagnosticLoggingKeys::noStoreKey()
157 {
158     return ASCIILiteral("noStore");
159 }
160
161 String DiagnosticLoggingKeys::notInMemoryCacheKey()
162 {
163     return ASCIILiteral("notInMemoryCache");
164 }
165
166 String DiagnosticLoggingKeys::pageCacheKey()
167 {
168     return ASCIILiteral("pageCache");
169 }
170
171 String DiagnosticLoggingKeys::noDocumentLoaderKey()
172 {
173     return ASCIILiteral("noDocumentLoader");
174 }
175
176 String DiagnosticLoggingKeys::noLongerInCacheKey()
177 {
178     return ASCIILiteral("noLongerInCache");
179 }
180
181 String DiagnosticLoggingKeys::otherKey()
182 {
183     return ASCIILiteral("other");
184 }
185
186 String DiagnosticLoggingKeys::mainDocumentErrorKey()
187 {
188     return ASCIILiteral("mainDocumentError");
189 }
190
191 String DiagnosticLoggingKeys::mainResourceKey()
192 {
193     return ASCIILiteral("mainResource");
194 }
195
196 String DiagnosticLoggingKeys::mediaKey()
197 {
198     return ASCIILiteral("media");
199 }
200
201 String DiagnosticLoggingKeys::isErrorPageKey()
202 {
203     return ASCIILiteral("isErrorPage");
204 }
205
206 String DiagnosticLoggingKeys::isExpiredKey()
207 {
208     return ASCIILiteral("isExpired");
209 }
210
211 String DiagnosticLoggingKeys::isReloadIgnoringCacheDataKey()
212 {
213     return ASCIILiteral("isReloadIgnoringCacheData");
214 }
215
216 String DiagnosticLoggingKeys::loadedKey()
217 {
218     return ASCIILiteral("loaded");
219 }
220
221 String DiagnosticLoggingKeys::loadingKey()
222 {
223     return ASCIILiteral("loading");
224 }
225
226 String DiagnosticLoggingKeys::hasPluginsKey()
227 {
228     return ASCIILiteral("hasPlugins");
229 }
230
231 String DiagnosticLoggingKeys::httpsNoStoreKey()
232 {
233     return ASCIILiteral("httpsNoStore");
234 }
235
236 String DiagnosticLoggingKeys::imageKey()
237 {
238     return ASCIILiteral("image");
239 }
240
241 String DiagnosticLoggingKeys::inMemoryCacheKey()
242 {
243     return ASCIILiteral("inMemoryCache");
244 }
245
246 String DiagnosticLoggingKeys::internalErrorKey()
247 {
248     return ASCIILiteral("internalError");
249 }
250
251 String DiagnosticLoggingKeys::invalidSessionIDKey()
252 {
253     return ASCIILiteral("invalidSessionID");
254 }
255
256 String DiagnosticLoggingKeys::isAttachmentKey()
257 {
258     return ASCIILiteral("isAttachment");
259 }
260
261 String DiagnosticLoggingKeys::isConditionalRequestKey()
262 {
263     return ASCIILiteral("isConditionalRequest");
264 }
265
266 String DiagnosticLoggingKeys::isDisabledKey()
267 {
268     return ASCIILiteral("isDisabled");
269 }
270
271 String DiagnosticLoggingKeys::noCurrentHistoryItemKey()
272 {
273     return ASCIILiteral("noCurrentHistoryItem");
274 }
275
276 String DiagnosticLoggingKeys::quirkRedirectComingKey()
277 {
278     return ASCIILiteral("quirkRedirectComing");
279 }
280
281 String DiagnosticLoggingKeys::rawKey()
282 {
283     return ASCIILiteral("raw");
284 }
285
286 String DiagnosticLoggingKeys::reasonKey()
287 {
288     return ASCIILiteral("reason");
289 }
290
291 String DiagnosticLoggingKeys::redirectKey()
292 {
293     return ASCIILiteral("redirect");
294 }
295
296 String DiagnosticLoggingKeys::isLoadingKey()
297 {
298     return ASCIILiteral("isLoading");
299 }
300
301 String DiagnosticLoggingKeys::documentLoaderStoppingKey()
302 {
303     return ASCIILiteral("documentLoaderStopping");
304 }
305
306 String DiagnosticLoggingKeys::cannotSuspendActiveDOMObjectsKey()
307 {
308     return ASCIILiteral("cannotSuspendActiveDOMObjects");
309 }
310
311 String DiagnosticLoggingKeys::cpuUsageKey()
312 {
313     return ASCIILiteral("cpuUsage");
314 }
315
316 String DiagnosticLoggingKeys::createSharedBufferFailedKey()
317 {
318     return ASCIILiteral("createSharedBufferFailed");
319 }
320
321 String DiagnosticLoggingKeys::deltaKey()
322 {
323     return ASCIILiteral("delta");
324 }
325
326 String DiagnosticLoggingKeys::applicationCacheKey()
327 {
328     return ASCIILiteral("applicationCache");
329 }
330
331 String DiagnosticLoggingKeys::audioKey()
332 {
333     return ASCIILiteral("audio");
334 }
335
336 String DiagnosticLoggingKeys::backNavigationKey()
337 {
338     return ASCIILiteral("backNavigation");
339 }
340
341 String DiagnosticLoggingKeys::canCacheKey()
342 {
343     return ASCIILiteral("canCache");
344 }
345
346 String DiagnosticLoggingKeys::cacheControlNoStoreKey()
347 {
348     return ASCIILiteral("cacheControlNoStore");
349 }
350
351 String DiagnosticLoggingKeys::cachedResourceRevalidationKey()
352 {
353     return ASCIILiteral("cachedResourceRevalidation");
354 }
355
356 String DiagnosticLoggingKeys::deniedByClientKey()
357 {
358     return ASCIILiteral("deniedByClient");
359 }
360
361 String DiagnosticLoggingKeys::deviceMotionKey()
362 {
363     return ASCIILiteral("deviceMotion");
364 }
365
366 String DiagnosticLoggingKeys::deviceOrientationKey()
367 {
368     return ASCIILiteral("deviceOrientation");
369 }
370
371 String DiagnosticLoggingKeys::deviceProximityKey()
372 {
373     return ASCIILiteral("deviceProximity");
374 }
375
376 String DiagnosticLoggingKeys::diskCacheKey()
377 {
378     return ASCIILiteral("diskCache");
379 }
380
381 String DiagnosticLoggingKeys::diskCacheAfterValidationKey()
382 {
383     return ASCIILiteral("diskCacheAfterValidation");
384 }
385
386 String DiagnosticLoggingKeys::reloadKey()
387 {
388     return ASCIILiteral("reload");
389 }
390
391 String DiagnosticLoggingKeys::replaceKey()
392 {
393     return ASCIILiteral("replace");
394 }
395
396 String DiagnosticLoggingKeys::requestKey()
397 {
398     return ASCIILiteral("request");
399 }
400
401 String DiagnosticLoggingKeys::retrievalRequestKey()
402 {
403     return ASCIILiteral("retrievalRequest");
404 }
405
406 String DiagnosticLoggingKeys::resourceKey()
407 {
408     return ASCIILiteral("resource");
409 }
410
411 String DiagnosticLoggingKeys::resourceRequestKey()
412 {
413     return ASCIILiteral("resourceRequest");
414 }
415
416 String DiagnosticLoggingKeys::resourceResponseKey()
417 {
418     return ASCIILiteral("resourceResponse");
419 }
420
421 String DiagnosticLoggingKeys::retrievalKey()
422 {
423     return ASCIILiteral("retrieval");
424 }
425
426 String DiagnosticLoggingKeys::revalidatingKey()
427 {
428     return ASCIILiteral("revalidating");
429 }
430
431 String DiagnosticLoggingKeys::reloadFromOriginKey()
432 {
433     return ASCIILiteral("reloadFromOrigin");
434 }
435
436 String DiagnosticLoggingKeys::sameLoadKey()
437 {
438     return ASCIILiteral("sameLoad");
439 }
440
441 String DiagnosticLoggingKeys::scriptKey()
442 {
443     return ASCIILiteral("script");
444 }
445
446 String DiagnosticLoggingKeys::sourceKey()
447 {
448     return ASCIILiteral("source");
449 }
450
451 String DiagnosticLoggingKeys::streamingMedia()
452 {
453     return ASCIILiteral("streamingMedia");
454 }
455
456 String DiagnosticLoggingKeys::styleSheetKey()
457 {
458     return ASCIILiteral("styleSheet");
459 }
460
461 String DiagnosticLoggingKeys::successfulSpeculativeWarmupWithRevalidationKey()
462 {
463     return ASCIILiteral("successfulSpeculativeWarmupWithRevalidation");
464 }
465
466 String DiagnosticLoggingKeys::successfulSpeculativeWarmupWithoutRevalidationKey()
467 {
468     return ASCIILiteral("successfulSpeculativeWarmupWithoutRevalidation");
469 }
470
471 String DiagnosticLoggingKeys::svgDocumentKey()
472 {
473     return ASCIILiteral("svgDocument");
474 }
475
476 String DiagnosticLoggingKeys::synchronousMessageFailedKey()
477 {
478     return ASCIILiteral("synchronousMessageFailed");
479 }
480
481 String DiagnosticLoggingKeys::uncacheableStatusCodeKey()
482 {
483     return ASCIILiteral("uncacheableStatusCode");
484 }
485
486 String DiagnosticLoggingKeys::underMemoryPressureKey()
487 {
488     return ASCIILiteral("underMemoryPressure");
489 }
490
491 String DiagnosticLoggingKeys::unknownEntryRequestKey()
492 {
493     return ASCIILiteral("unknownEntryRequest");
494 }
495
496 String DiagnosticLoggingKeys::unlikelyToReuseKey()
497 {
498     return ASCIILiteral("unlikelyToReuse");
499 }
500
501 String DiagnosticLoggingKeys::unsupportedHTTPMethodKey()
502 {
503     return ASCIILiteral("unsupportedHTTPMethod");
504 }
505
506 String DiagnosticLoggingKeys::unsuspendableDOMObjectKey()
507 {
508     return ASCIILiteral("unsuspendableDOMObject");
509 }
510
511 String DiagnosticLoggingKeys::unusableCachedEntryKey()
512 {
513     return ASCIILiteral("unusableCachedEntry");
514 }
515
516 String DiagnosticLoggingKeys::unusedKey()
517 {
518     return ASCIILiteral("unused");
519 }
520
521 String DiagnosticLoggingKeys::unusedReasonCredentialSettingsKey()
522 {
523     return ASCIILiteral("unused.reason.credentialSettings");
524 }
525
526 String DiagnosticLoggingKeys::unusedReasonErrorKey()
527 {
528     return ASCIILiteral("unused.reason.error");
529 }
530
531 String DiagnosticLoggingKeys::unusedReasonMustRevalidateNoValidatorKey()
532 {
533     return ASCIILiteral("unused.reason.mustRevalidateNoValidator");
534 }
535
536 String DiagnosticLoggingKeys::unusedReasonNoStoreKey()
537 {
538     return ASCIILiteral("unused.reason.noStore");
539 }
540
541 String DiagnosticLoggingKeys::unusedReasonRedirectChainKey()
542 {
543     return ASCIILiteral("unused.reason.redirectChain");
544 }
545
546 String DiagnosticLoggingKeys::unusedReasonReloadKey()
547 {
548     return ASCIILiteral("unused.reason.reload");
549 }
550
551 String DiagnosticLoggingKeys::unusedReasonTypeMismatchKey()
552 {
553     return ASCIILiteral("unused.reason.typeMismatch");
554 }
555
556 String DiagnosticLoggingKeys::usedKey()
557 {
558     return ASCIILiteral("used");
559 }
560
561 String DiagnosticLoggingKeys::userKey()
562 {
563     return ASCIILiteral("user");
564 }
565
566 String DiagnosticLoggingKeys::varyingHeaderMismatchKey()
567 {
568     return ASCIILiteral("varyingHeaderMismatch");
569 }
570
571 String DiagnosticLoggingKeys::videoKey()
572 {
573     return ASCIILiteral("video");
574 }
575
576 String DiagnosticLoggingKeys::wastedSpeculativeWarmupWithRevalidationKey()
577 {
578     return ASCIILiteral("wastedSpeculativeWarmupWithRevalidation");
579 }
580
581 String DiagnosticLoggingKeys::wastedSpeculativeWarmupWithoutRevalidationKey()
582 {
583     return ASCIILiteral("wastedSpeculativeWarmupWithoutRevalidation");
584 }
585
586 String DiagnosticLoggingKeys::webViewKey()
587 {
588     return ASCIILiteral("webView");
589 }
590
591 String DiagnosticLoggingKeys::zoomedKey()
592 {
593     return ASCIILiteral("zoomed");
594 }
595
596 String DiagnosticLoggingKeys::expiredKey()
597 {
598     return ASCIILiteral("expired");
599 }
600
601 String DiagnosticLoggingKeys::fontKey()
602 {
603     return ASCIILiteral("font");
604 }
605
606 String DiagnosticLoggingKeys::prunedDueToMemoryPressureKey()
607 {
608     return ASCIILiteral("pruned.memoryPressure");
609 }
610
611 String DiagnosticLoggingKeys::prunedDueToMaxSizeReached()
612 {
613     return ASCIILiteral("pruned.capacityReached");
614 }
615
616 String DiagnosticLoggingKeys::prunedDueToProcessSuspended()
617 {
618     return ASCIILiteral("pruned.processSuspended");
619 }
620
621 String WebCore::DiagnosticLoggingKeys::notHTTPFamilyKey()
622 {
623     return ASCIILiteral("notHTTPFamily");
624 }
625
626 String DiagnosticLoggingKeys::notInCacheKey()
627 {
628     return ASCIILiteral("notInCache");
629 }
630
631 } // namespace WebCore
632