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

Side by Side Diff: Source/core/inspector/InspectorProfilerAgent.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 bool InspectorProfilerAgent::enabled() 132 bool InspectorProfilerAgent::enabled()
133 { 133 {
134 return m_state->getBoolean(ProfilerAgentState::profilerEnabled); 134 return m_state->getBoolean(ProfilerAgentState::profilerEnabled);
135 } 135 }
136 136
137 String InspectorProfilerAgent::getCurrentUserInitiatedProfileName(bool increment ProfileNumber) 137 String InspectorProfilerAgent::getCurrentUserInitiatedProfileName(bool increment ProfileNumber)
138 { 138 {
139 if (incrementProfileNumber) 139 if (incrementProfileNumber)
140 m_currentUserInitiatedProfileNumber = m_nextUserInitiatedProfileNumber++ ; 140 m_currentUserInitiatedProfileNumber = m_nextUserInitiatedProfileNumber++ ;
141 141
142 return String(ASCIILiteral(userInitiatedProfileName)) + "." + String::number (m_currentUserInitiatedProfileNumber); 142 return String(userInitiatedProfileName) + "." + String::number(m_currentUser InitiatedProfileNumber);
143 } 143 }
144 144
145 void InspectorProfilerAgent::getProfileHeaders(ErrorString*, RefPtr<TypeBuilder: :Array<TypeBuilder::Profiler::ProfileHeader> >& headers) 145 void InspectorProfilerAgent::getProfileHeaders(ErrorString*, RefPtr<TypeBuilder: :Array<TypeBuilder::Profiler::ProfileHeader> >& headers)
146 { 146 {
147 m_state->setBoolean(ProfilerAgentState::profileHeadersRequested, true); 147 m_state->setBoolean(ProfilerAgentState::profileHeadersRequested, true);
148 headers = TypeBuilder::Array<TypeBuilder::Profiler::ProfileHeader>::create() ; 148 headers = TypeBuilder::Array<TypeBuilder::Profiler::ProfileHeader>::create() ;
149 149
150 ProfilesMap::iterator profilesEnd = m_profiles.end(); 150 ProfilesMap::iterator profilesEnd = m_profiles.end();
151 for (ProfilesMap::iterator it = m_profiles.begin(); it != profilesEnd; ++it) 151 for (ProfilesMap::iterator it = m_profiles.begin(); it != profilesEnd; ++it)
152 headers->addItem(createProfileHeader(*it->value)); 152 headers->addItem(createProfileHeader(*it->value));
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 void InspectorProfilerAgent::didProcessTask() 282 void InspectorProfilerAgent::didProcessTask()
283 { 283 {
284 if (!m_profileNameIdleTimeMap || !m_profileNameIdleTimeMap->size()) 284 if (!m_profileNameIdleTimeMap || !m_profileNameIdleTimeMap->size())
285 return; 285 return;
286 m_previousTaskEndTime = WTF::monotonicallyIncreasingTime(); 286 m_previousTaskEndTime = WTF::monotonicallyIncreasingTime();
287 } 287 }
288 288
289 } // namespace WebCore 289 } // namespace WebCore
290 290
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698