| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |