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

Side by Side Diff: Source/core/timing/PerformanceUserTiming.cpp

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/PerformanceUserTiming.h ('k') | no next file » | 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 PerformanceEntryVector UserTiming::getMeasures() const 201 PerformanceEntryVector UserTiming::getMeasures() const
202 { 202 {
203 return convertToEntrySequence(m_measuresMap); 203 return convertToEntrySequence(m_measuresMap);
204 } 204 }
205 205
206 PerformanceEntryVector UserTiming::getMeasures(const String& name) const 206 PerformanceEntryVector UserTiming::getMeasures(const String& name) const
207 { 207 {
208 return getEntrySequenceByName(m_measuresMap, name); 208 return getEntrySequenceByName(m_measuresMap, name);
209 } 209 }
210 210
211 void UserTiming::trace(Visitor* visitor) 211 DEFINE_TRACE(UserTiming)
212 { 212 {
213 #if ENABLE(OILPAN) 213 #if ENABLE(OILPAN)
214 visitor->trace(m_performance); 214 visitor->trace(m_performance);
215 visitor->trace(m_marksMap); 215 visitor->trace(m_marksMap);
216 visitor->trace(m_measuresMap); 216 visitor->trace(m_measuresMap);
217 #endif 217 #endif
218 } 218 }
219 219
220 } // namespace blink 220 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/timing/PerformanceUserTiming.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698