Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceTiming.h

Issue 2468913002: Add CSSTiming to collect aggregate PLT-level stats about CSS. (Closed)
Patch Set: fix browser test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #ifndef PerformanceTiming_h 31 #ifndef PerformanceTiming_h
32 #define PerformanceTiming_h 32 #define PerformanceTiming_h
33 33
34 #include "bindings/core/v8/ScriptWrappable.h" 34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "core/frame/DOMWindowProperty.h" 36 #include "core/frame/DOMWindowProperty.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class CSSTiming;
41 class DocumentLoadTiming; 42 class DocumentLoadTiming;
42 class DocumentLoader; 43 class DocumentLoader;
43 class DocumentParserTiming; 44 class DocumentParserTiming;
44 class DocumentTiming; 45 class DocumentTiming;
45 class LocalFrame; 46 class LocalFrame;
46 class PaintTiming; 47 class PaintTiming;
47 class ResourceLoadTiming; 48 class ResourceLoadTiming;
48 class ScriptState; 49 class ScriptState;
49 class ScriptValue; 50 class ScriptValue;
50 51
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 unsigned long long firstMeaningfulPaint() const; 101 unsigned long long firstMeaningfulPaint() const;
101 102
102 unsigned long long parseStart() const; 103 unsigned long long parseStart() const;
103 unsigned long long parseStop() const; 104 unsigned long long parseStop() const;
104 unsigned long long parseBlockedOnScriptLoadDuration() const; 105 unsigned long long parseBlockedOnScriptLoadDuration() const;
105 unsigned long long parseBlockedOnScriptLoadFromDocumentWriteDuration() const; 106 unsigned long long parseBlockedOnScriptLoadFromDocumentWriteDuration() const;
106 unsigned long long parseBlockedOnScriptExecutionDuration() const; 107 unsigned long long parseBlockedOnScriptExecutionDuration() const;
107 unsigned long long parseBlockedOnScriptExecutionFromDocumentWriteDuration() 108 unsigned long long parseBlockedOnScriptExecutionFromDocumentWriteDuration()
108 const; 109 const;
109 110
111 // Microseconds spend parsing author style sheets before the first contentful
112 // paint.
113 unsigned long long authorStyleSheetParseDurationBeforeFCP() const;
114
110 ScriptValue toJSONForBinding(ScriptState*) const; 115 ScriptValue toJSONForBinding(ScriptState*) const;
111 116
112 DECLARE_VIRTUAL_TRACE(); 117 DECLARE_VIRTUAL_TRACE();
113 118
114 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; 119 unsigned long long monotonicTimeToIntegerMilliseconds(double) const;
115 double integerMillisecondsToMonotonicTime(unsigned long long) const; 120 double integerMillisecondsToMonotonicTime(unsigned long long) const;
116 121
117 private: 122 private:
118 explicit PerformanceTiming(LocalFrame*); 123 explicit PerformanceTiming(LocalFrame*);
119 124
120 const DocumentTiming* documentTiming() const; 125 const DocumentTiming* documentTiming() const;
126 const CSSTiming* cssTiming() const;
121 const DocumentParserTiming* documentParserTiming() const; 127 const DocumentParserTiming* documentParserTiming() const;
122 const PaintTiming* paintTiming() const; 128 const PaintTiming* paintTiming() const;
123 DocumentLoader* documentLoader() const; 129 DocumentLoader* documentLoader() const;
124 DocumentLoadTiming* documentLoadTiming() const; 130 DocumentLoadTiming* documentLoadTiming() const;
125 ResourceLoadTiming* resourceLoadTiming() const; 131 ResourceLoadTiming* resourceLoadTiming() const;
126 }; 132 };
127 133
128 } // namespace blink 134 } // namespace blink
129 135
130 #endif // PerformanceTiming_h 136 #endif // PerformanceTiming_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.cpp ('k') | third_party/WebKit/Source/core/timing/PerformanceTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698