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 23 matching lines...) Expand all Loading... |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class PerformanceMeasure final : public PerformanceEntry { | 36 class PerformanceMeasure final : public PerformanceEntry { |
37 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
38 public: | 38 public: |
39 static PerformanceMeasure* create(const String& name, double startTime, doub
le endTime) | 39 static PerformanceMeasure* create(const String& name, double startTime, doub
le endTime) |
40 { | 40 { |
41 return new PerformanceMeasure(name, startTime, endTime); | 41 return new PerformanceMeasure(name, startTime, endTime); |
42 } | 42 } |
43 | 43 |
44 bool isMeasure() override { return true; } | |
45 | |
46 DEFINE_INLINE_VIRTUAL_TRACE() | 44 DEFINE_INLINE_VIRTUAL_TRACE() |
47 { | 45 { |
48 PerformanceEntry::trace(visitor); | 46 PerformanceEntry::trace(visitor); |
49 } | 47 } |
50 | 48 |
51 private: | 49 private: |
52 PerformanceMeasure(const String& name, double startTime, double endTime) | 50 PerformanceMeasure(const String& name, double startTime, double endTime) |
53 : PerformanceEntry(name, "measure", startTime, endTime) { } | 51 : PerformanceEntry(name, "measure", startTime, endTime) { } |
54 ~PerformanceMeasure() override { } | 52 ~PerformanceMeasure() override { } |
55 }; | 53 }; |
56 | 54 |
57 } // namespace blink | 55 } // namespace blink |
58 | 56 |
59 #endif // PerformanceMeasure_h | 57 #endif // PerformanceMeasure_h |
OLD | NEW |