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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
43 public: | 43 public: |
44 virtual ~PerformanceEntry(); | 44 virtual ~PerformanceEntry(); |
45 | 45 |
46 String name() const; | 46 String name() const; |
47 String entryType() const; | 47 String entryType() const; |
48 double startTime() const; | 48 double startTime() const; |
49 double duration() const; | 49 double duration() const; |
50 | 50 |
51 virtual bool isResource() { return false; } | 51 virtual bool isResource() { return false; } |
| 52 virtual bool isRender() { return false; } |
| 53 virtual bool isComposite() { return false; } |
52 virtual bool isMark() { return false; } | 54 virtual bool isMark() { return false; } |
53 virtual bool isMeasure() { return false; } | 55 virtual bool isMeasure() { return false; } |
54 | 56 |
55 static bool startTimeCompareLessThan(PerformanceEntry* a, PerformanceEntry*
b) | 57 static bool startTimeCompareLessThan(PerformanceEntry* a, PerformanceEntry*
b) |
56 { | 58 { |
57 return a->startTime() < b->startTime(); | 59 return a->startTime() < b->startTime(); |
58 } | 60 } |
59 | 61 |
60 DEFINE_INLINE_VIRTUAL_TRACE() { } | 62 DEFINE_INLINE_VIRTUAL_TRACE() { } |
61 | 63 |
62 protected: | 64 protected: |
63 PerformanceEntry(const String& name, const String& entryType, double startTi
me, double finishTime); | 65 PerformanceEntry(const String& name, const String& entryType, double startTi
me, double finishTime); |
64 | 66 |
65 private: | 67 private: |
66 const String m_name; | 68 const String m_name; |
67 const String m_entryType; | 69 const String m_entryType; |
68 const double m_startTime; | 70 const double m_startTime; |
69 const double m_duration; | 71 const double m_duration; |
70 }; | 72 }; |
71 | 73 |
72 } // namespace blink | 74 } // namespace blink |
73 | 75 |
74 #endif // PerformanceEntry_h | 76 #endif // PerformanceEntry_h |
OLD | NEW |