OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Intel Inc. All rights reserved. | 2 * Copyright (C) 2012 Intel 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 22 matching lines...) Expand all Loading... |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 class PerformanceMark final : public PerformanceEntry { | 35 class PerformanceMark final : public PerformanceEntry { |
36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
37 public: | 37 public: |
38 static PerformanceMark* create(const String& name, double startTime) | 38 static PerformanceMark* create(const String& name, double startTime) |
39 { | 39 { |
40 return new PerformanceMark(name, startTime); | 40 return new PerformanceMark(name, startTime); |
41 } | 41 } |
42 | 42 |
43 bool isMark() override { return true; } | |
44 | |
45 DEFINE_INLINE_VIRTUAL_TRACE() | 43 DEFINE_INLINE_VIRTUAL_TRACE() |
46 { | 44 { |
47 PerformanceEntry::trace(visitor); | 45 PerformanceEntry::trace(visitor); |
48 } | 46 } |
49 | 47 |
50 private: | 48 private: |
51 PerformanceMark(const String& name, double startTime) | 49 PerformanceMark(const String& name, double startTime) |
52 : PerformanceEntry(name, "mark", startTime, startTime) { } | 50 : PerformanceEntry(name, "mark", startTime, startTime) { } |
53 | 51 |
54 ~PerformanceMark() override { } | 52 ~PerformanceMark() override { } |
55 }; | 53 }; |
56 | 54 |
57 } // namespace blink | 55 } // namespace blink |
58 | 56 |
59 #endif // PerformanceMark_h | 57 #endif // PerformanceMark_h |
OLD | NEW |