Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: Source/core/timing/PerformanceMeasure.h

Issue 1198863006: First version of PerformanceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/timing/PerformanceMark.h ('k') | Source/core/timing/PerformanceObserver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/timing/PerformanceMark.h ('k') | Source/core/timing/PerformanceObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698