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

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

Issue 49093004: Move more arrays of strings to shareable memory (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "wtf/text/StringConcatenate.h" 45 #include "wtf/text/StringConcatenate.h"
46 46
47 namespace WebCore { 47 namespace WebCore {
48 48
49 namespace ProfilerAgentState { 49 namespace ProfilerAgentState {
50 static const char samplingInterval[] = "samplingInterval"; 50 static const char samplingInterval[] = "samplingInterval";
51 static const char userInitiatedProfiling[] = "userInitiatedProfiling"; 51 static const char userInitiatedProfiling[] = "userInitiatedProfiling";
52 static const char profilerEnabled[] = "profilerEnabled"; 52 static const char profilerEnabled[] = "profilerEnabled";
53 } 53 }
54 54
55 static const char* const CPUProfileType = "CPU"; 55 static const char CPUProfileType[] = "CPU";
56 56
57 PassOwnPtr<InspectorProfilerAgent> InspectorProfilerAgent::create(InstrumentingA gents* instrumentingAgents, InspectorConsoleAgent* consoleAgent, InspectorCompos iteState* inspectorState, InjectedScriptManager* injectedScriptManager) 57 PassOwnPtr<InspectorProfilerAgent> InspectorProfilerAgent::create(InstrumentingA gents* instrumentingAgents, InspectorConsoleAgent* consoleAgent, InspectorCompos iteState* inspectorState, InjectedScriptManager* injectedScriptManager)
58 { 58 {
59 return adoptPtr(new InspectorProfilerAgent(instrumentingAgents, consoleAgent , inspectorState, injectedScriptManager)); 59 return adoptPtr(new InspectorProfilerAgent(instrumentingAgents, consoleAgent , inspectorState, injectedScriptManager));
60 } 60 }
61 61
62 InspectorProfilerAgent::InspectorProfilerAgent(InstrumentingAgents* instrumentin gAgents, InspectorConsoleAgent* consoleAgent, InspectorCompositeState* inspector State, InjectedScriptManager* injectedScriptManager) 62 InspectorProfilerAgent::InspectorProfilerAgent(InstrumentingAgents* instrumentin gAgents, InspectorConsoleAgent* consoleAgent, InspectorCompositeState* inspector State, InjectedScriptManager* injectedScriptManager)
63 : InspectorBaseAgent<InspectorProfilerAgent>("Profiler", instrumentingAgents , inspectorState) 63 : InspectorBaseAgent<InspectorProfilerAgent>("Profiler", instrumentingAgents , inspectorState)
64 , m_consoleAgent(consoleAgent) 64 , m_consoleAgent(consoleAgent)
65 , m_injectedScriptManager(injectedScriptManager) 65 , m_injectedScriptManager(injectedScriptManager)
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 idleStarted(); 301 idleStarted();
302 } 302 }
303 303
304 void InspectorProfilerAgent::didLeaveNestedRunLoop() 304 void InspectorProfilerAgent::didLeaveNestedRunLoop()
305 { 305 {
306 idleFinished(); 306 idleFinished();
307 } 307 }
308 308
309 } // namespace WebCore 309 } // namespace WebCore
310 310
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMDebuggerAgent.cpp ('k') | Source/core/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698