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

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

Issue 940843003: InlinedVisitor: Migrate timing to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/timing/MemoryInfo.h ('k') | Source/core/timing/Performance.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull); 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
83 83
84 void addResourceTiming(const ResourceTimingInfo&, Document*); 84 void addResourceTiming(const ResourceTimingInfo&, Document*);
85 85
86 void mark(const String& markName, ExceptionState&); 86 void mark(const String& markName, ExceptionState&);
87 void clearMarks(const String& markName); 87 void clearMarks(const String& markName);
88 88
89 void measure(const String& measureName, const String& startMark, const Strin g& endMark, ExceptionState&); 89 void measure(const String& measureName, const String& startMark, const Strin g& endMark, ExceptionState&);
90 void clearMeasures(const String& measureName); 90 void clearMeasures(const String& measureName);
91 91
92 virtual void trace(Visitor*) override; 92 DECLARE_VIRTUAL_TRACE();
93 93
94 private: 94 private:
95 explicit Performance(LocalFrame*); 95 explicit Performance(LocalFrame*);
96 96
97 bool isResourceTimingBufferFull(); 97 bool isResourceTimingBufferFull();
98 void addResourceTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>); 98 void addResourceTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>);
99 99
100 mutable RefPtrWillBeMember<PerformanceNavigation> m_navigation; 100 mutable RefPtrWillBeMember<PerformanceNavigation> m_navigation;
101 mutable RefPtrWillBeMember<PerformanceTiming> m_timing; 101 mutable RefPtrWillBeMember<PerformanceTiming> m_timing;
102 102
103 PerformanceEntryVector m_resourceTimingBuffer; 103 PerformanceEntryVector m_resourceTimingBuffer;
104 unsigned m_resourceTimingBufferSize; 104 unsigned m_resourceTimingBufferSize;
105 double m_referenceTime; 105 double m_referenceTime;
106 106
107 RefPtrWillBeMember<UserTiming> m_userTiming; 107 RefPtrWillBeMember<UserTiming> m_userTiming;
108 }; 108 };
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif // Performance_h 112 #endif // Performance_h
OLDNEW
« no previous file with comments | « Source/core/timing/MemoryInfo.h ('k') | Source/core/timing/Performance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698