OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 enum EntryType : PerformanceEntryType { | 58 enum EntryType : PerformanceEntryType { |
59 Invalid = 0, | 59 Invalid = 0, |
60 Navigation = 1 << 0, | 60 Navigation = 1 << 0, |
61 Composite = 1 << 1, | 61 Composite = 1 << 1, |
62 Mark = 1 << 2, | 62 Mark = 1 << 2, |
63 Measure = 1 << 3, | 63 Measure = 1 << 3, |
64 Render = 1 << 4, | 64 Render = 1 << 4, |
65 Resource = 1 << 5, | 65 Resource = 1 << 5, |
66 LongTask = 1 << 6, | 66 LongTask = 1 << 6, |
67 TaskAttribution = 1 << 7, | 67 TaskAttribution = 1 << 7, |
68 Paint = 1 << 8 | 68 Paint = 1 << 8, |
| 69 Server = 1 << 9 |
69 }; | 70 }; |
70 | 71 |
71 String name() const; | 72 String name() const; |
72 String entryType() const; | 73 String entryType() const; |
73 DOMHighResTimeStamp startTime() const; | 74 DOMHighResTimeStamp startTime() const; |
74 // PerformanceNavigationTiming will override this due to | 75 // PerformanceNavigationTiming will override this due to |
75 // the nature of reporting it early, which means not having a | 76 // the nature of reporting it early, which means not having a |
76 // finish time available at construction time. | 77 // finish time available at construction time. |
77 // Other classes must NOT override this. | 78 // Other classes must NOT override this. |
78 virtual DOMHighResTimeStamp duration() const; | 79 virtual DOMHighResTimeStamp duration() const; |
(...skipping 28 matching lines...) Expand all Loading... |
107 const String m_name; | 108 const String m_name; |
108 const String m_entryType; | 109 const String m_entryType; |
109 const double m_startTime; | 110 const double m_startTime; |
110 const double m_duration; | 111 const double m_duration; |
111 const PerformanceEntryType m_entryTypeEnum; | 112 const PerformanceEntryType m_entryTypeEnum; |
112 }; | 113 }; |
113 | 114 |
114 } // namespace blink | 115 } // namespace blink |
115 | 116 |
116 #endif // PerformanceEntry_h | 117 #endif // PerformanceEntry_h |
OLD | NEW |