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

Side by Side Diff: Source/core/timing/PerformanceMark.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/PerformanceEntry.cpp ('k') | Source/core/timing/PerformanceMeasure.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 22 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/core/timing/PerformanceEntry.cpp ('k') | Source/core/timing/PerformanceMeasure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698