OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 unsigned long long requestStart() const; | 69 unsigned long long requestStart() const; |
70 unsigned long long responseStart() const; | 70 unsigned long long responseStart() const; |
71 unsigned long long responseEnd() const; | 71 unsigned long long responseEnd() const; |
72 unsigned long long domLoading() const; | 72 unsigned long long domLoading() const; |
73 unsigned long long domInteractive() const; | 73 unsigned long long domInteractive() const; |
74 unsigned long long domContentLoadedEventStart() const; | 74 unsigned long long domContentLoadedEventStart() const; |
75 unsigned long long domContentLoadedEventEnd() const; | 75 unsigned long long domContentLoadedEventEnd() const; |
76 unsigned long long domComplete() const; | 76 unsigned long long domComplete() const; |
77 unsigned long long loadEventStart() const; | 77 unsigned long long loadEventStart() const; |
78 unsigned long long loadEventEnd() const; | 78 unsigned long long loadEventEnd() const; |
| 79 |
| 80 // The below are non-spec timings, for Page Load UMA metrics. |
| 81 |
| 82 // The time the first document layout is performed. |
79 unsigned long long firstLayout() const; | 83 unsigned long long firstLayout() const; |
| 84 // The time the first paint operation for visible text was performed. |
| 85 unsigned long long firstNonBlankText() const; |
| 86 // Similar to firstNonBlankText, but only for text with custom fonts |
| 87 // (@font-face with url() source). This may not be recorded if no custom |
| 88 // font is used. |
| 89 unsigned long long firstCustomFontText() const; |
80 | 90 |
81 ScriptValue toJSONForBinding(ScriptState*) const; | 91 ScriptValue toJSONForBinding(ScriptState*) const; |
82 | 92 |
83 DECLARE_VIRTUAL_TRACE(); | 93 DECLARE_VIRTUAL_TRACE(); |
84 | 94 |
85 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; | 95 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; |
86 double integerMillisecondsToMonotonicTime(unsigned long long) const; | 96 double integerMillisecondsToMonotonicTime(unsigned long long) const; |
87 | 97 |
88 private: | 98 private: |
89 explicit PerformanceTiming(LocalFrame*); | 99 explicit PerformanceTiming(LocalFrame*); |
90 | 100 |
91 const DocumentTiming* documentTiming() const; | 101 const DocumentTiming* documentTiming() const; |
92 DocumentLoader* documentLoader() const; | 102 DocumentLoader* documentLoader() const; |
93 DocumentLoadTiming* documentLoadTiming() const; | 103 DocumentLoadTiming* documentLoadTiming() const; |
94 ResourceLoadTiming* resourceLoadTiming() const; | 104 ResourceLoadTiming* resourceLoadTiming() const; |
95 }; | 105 }; |
96 | 106 |
97 } // namespace blink | 107 } // namespace blink |
98 | 108 |
99 #endif // PerformanceTiming_h | 109 #endif // PerformanceTiming_h |
OLD | NEW |