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