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

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

Issue 2533783003: Add metrics for style update time before FCP. (Closed)
Patch Set: value_or(base::TimeDelta()) Created 4 years 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // where the page's primary content is visible. 100 // where the page's primary content is visible.
101 unsigned long long firstMeaningfulPaint() const; 101 unsigned long long firstMeaningfulPaint() const;
102 102
103 unsigned long long parseStart() const; 103 unsigned long long parseStart() const;
104 unsigned long long parseStop() const; 104 unsigned long long parseStop() const;
105 unsigned long long parseBlockedOnScriptLoadDuration() const; 105 unsigned long long parseBlockedOnScriptLoadDuration() const;
106 unsigned long long parseBlockedOnScriptLoadFromDocumentWriteDuration() const; 106 unsigned long long parseBlockedOnScriptLoadFromDocumentWriteDuration() const;
107 unsigned long long parseBlockedOnScriptExecutionDuration() const; 107 unsigned long long parseBlockedOnScriptExecutionDuration() const;
108 unsigned long long parseBlockedOnScriptExecutionFromDocumentWriteDuration() 108 unsigned long long parseBlockedOnScriptExecutionFromDocumentWriteDuration()
109 const; 109 const;
110
111 // Microseconds spend parsing author style sheets before the first contentful
112 // paint.
113 unsigned long long authorStyleSheetParseDurationBeforeFCP() const; 110 unsigned long long authorStyleSheetParseDurationBeforeFCP() const;
111 unsigned long long updateStyleDurationBeforeFCP() const;
114 112
115 ScriptValue toJSONForBinding(ScriptState*) const; 113 ScriptValue toJSONForBinding(ScriptState*) const;
116 114
117 DECLARE_VIRTUAL_TRACE(); 115 DECLARE_VIRTUAL_TRACE();
118 116
119 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; 117 unsigned long long monotonicTimeToIntegerMilliseconds(double) const;
120 double integerMillisecondsToMonotonicTime(unsigned long long) const; 118 double integerMillisecondsToMonotonicTime(unsigned long long) const;
121 119
122 private: 120 private:
123 explicit PerformanceTiming(LocalFrame*); 121 explicit PerformanceTiming(LocalFrame*);
124 122
125 const DocumentTiming* documentTiming() const; 123 const DocumentTiming* documentTiming() const;
126 const CSSTiming* cssTiming() const; 124 const CSSTiming* cssTiming() const;
127 const DocumentParserTiming* documentParserTiming() const; 125 const DocumentParserTiming* documentParserTiming() const;
128 const PaintTiming* paintTiming() const; 126 const PaintTiming* paintTiming() const;
129 DocumentLoader* documentLoader() const; 127 DocumentLoader* documentLoader() const;
130 DocumentLoadTiming* documentLoadTiming() const; 128 DocumentLoadTiming* documentLoadTiming() const;
131 ResourceLoadTiming* resourceLoadTiming() const; 129 ResourceLoadTiming* resourceLoadTiming() const;
132 }; 130 };
133 131
134 } // namespace blink 132 } // namespace blink
135 133
136 #endif // PerformanceTiming_h 134 #endif // PerformanceTiming_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.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