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

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

Issue 150653006: Remove the Vector::append overload that takes a Vector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « Source/core/timing/Performance.cpp ('k') | Source/core/xml/XPathNodeSet.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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 void UserTiming::clearMeasures(const String& measureName) 164 void UserTiming::clearMeasures(const String& measureName)
165 { 165 {
166 clearPeformanceEntries(m_measuresMap, measureName); 166 clearPeformanceEntries(m_measuresMap, measureName);
167 } 167 }
168 168
169 static PerformanceEntryVector convertToEntrySequence(const PerformanceEntryMap& performanceEntryMap) 169 static PerformanceEntryVector convertToEntrySequence(const PerformanceEntryMap& performanceEntryMap)
170 { 170 {
171 PerformanceEntryVector entries; 171 PerformanceEntryVector entries;
172 172
173 for (PerformanceEntryMap::const_iterator it = performanceEntryMap.begin(); i t != performanceEntryMap.end(); ++it) 173 for (PerformanceEntryMap::const_iterator it = performanceEntryMap.begin(); i t != performanceEntryMap.end(); ++it)
174 entries.append(it->value); 174 entries.appendVector(it->value);
175 175
176 return entries; 176 return entries;
177 } 177 }
178 178
179 static PerformanceEntryVector getEntrySequenceByName(const PerformanceEntryMap& performanceEntryMap, const String& name) 179 static PerformanceEntryVector getEntrySequenceByName(const PerformanceEntryMap& performanceEntryMap, const String& name)
180 { 180 {
181 PerformanceEntryVector entries; 181 PerformanceEntryVector entries;
182 182
183 PerformanceEntryMap::const_iterator it = performanceEntryMap.find(name); 183 PerformanceEntryMap::const_iterator it = performanceEntryMap.find(name);
184 if (it != performanceEntryMap.end()) 184 if (it != performanceEntryMap.end())
185 entries.append(it->value); 185 entries.appendVector(it->value);
186 186
187 return entries; 187 return entries;
188 } 188 }
189 189
190 PerformanceEntryVector UserTiming::getMarks() const 190 PerformanceEntryVector UserTiming::getMarks() const
191 { 191 {
192 return convertToEntrySequence(m_marksMap); 192 return convertToEntrySequence(m_marksMap);
193 } 193 }
194 194
195 PerformanceEntryVector UserTiming::getMarks(const String& name) const 195 PerformanceEntryVector UserTiming::getMarks(const String& name) const
(...skipping 12 matching lines...) Expand all
208 } 208 }
209 209
210 void UserTiming::trace(Visitor* visitor) 210 void UserTiming::trace(Visitor* visitor)
211 { 211 {
212 visitor->trace(m_performance); 212 visitor->trace(m_performance);
213 visitor->trace(m_marksMap); 213 visitor->trace(m_marksMap);
214 visitor->trace(m_measuresMap); 214 visitor->trace(m_measuresMap);
215 } 215 }
216 216
217 } // namespace WebCore 217 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/timing/Performance.cpp ('k') | Source/core/xml/XPathNodeSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698