| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class InjectedScriptManager; | 43 class InjectedScriptManager; |
| 44 class InspectorFrontend; | 44 class InspectorFrontend; |
| 45 class InspectorOverlay; | 45 class InspectorOverlay; |
| 46 class InstrumentingAgents; | 46 class InstrumentingAgents; |
| 47 class ScriptCallStack; | 47 class ScriptCallStack; |
| 48 class ScriptProfile; | 48 class ScriptProfile; |
| 49 class ScriptState; | 49 class ScriptState; |
| 50 | 50 |
| 51 typedef String ErrorString; | 51 typedef String ErrorString; |
| 52 | 52 |
| 53 class InspectorProfilerAgent : public InspectorBaseAgent<InspectorProfilerAgent>
, public InspectorBackendDispatcher::ProfilerCommandHandler { | 53 class InspectorProfilerAgent FINAL : public InspectorBaseAgent<InspectorProfiler
Agent>, public InspectorBackendDispatcher::ProfilerCommandHandler { |
| 54 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); WTF_MAKE_FAST_ALLOCATED; | 54 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); WTF_MAKE_FAST_ALLOCATED; |
| 55 public: | 55 public: |
| 56 static PassOwnPtr<InspectorProfilerAgent> create(InstrumentingAgents*, Inspe
ctorCompositeState*, InjectedScriptManager*, InspectorOverlay*); | 56 static PassOwnPtr<InspectorProfilerAgent> create(InstrumentingAgents*, Inspe
ctorCompositeState*, InjectedScriptManager*, InspectorOverlay*); |
| 57 virtual ~InspectorProfilerAgent(); | 57 virtual ~InspectorProfilerAgent(); |
| 58 | 58 |
| 59 void consoleProfile(const String& title, ScriptState*); | 59 void consoleProfile(const String& title, ScriptState*); |
| 60 void consoleProfileEnd(const String& title); | 60 void consoleProfileEnd(const String& title); |
| 61 | 61 |
| 62 virtual void enable(ErrorString*); | 62 virtual void enable(ErrorString*) OVERRIDE; |
| 63 virtual void disable(ErrorString*); | 63 virtual void disable(ErrorString*) OVERRIDE; |
| 64 virtual void setSamplingInterval(ErrorString*, int); | 64 virtual void setSamplingInterval(ErrorString*, int) OVERRIDE; |
| 65 virtual void start(ErrorString*); | 65 virtual void start(ErrorString*) OVERRIDE; |
| 66 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&); | 66 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&)
OVERRIDE; |
| 67 | 67 |
| 68 virtual void setFrontend(InspectorFrontend*); | 68 virtual void setFrontend(InspectorFrontend*) OVERRIDE; |
| 69 virtual void clearFrontend(); | 69 virtual void clearFrontend() OVERRIDE; |
| 70 virtual void restore(); | 70 virtual void restore() OVERRIDE; |
| 71 | 71 |
| 72 void willProcessTask(); | 72 void willProcessTask(); |
| 73 void didProcessTask(); | 73 void didProcessTask(); |
| 74 void willEnterNestedRunLoop(); | 74 void willEnterNestedRunLoop(); |
| 75 void didLeaveNestedRunLoop(); | 75 void didLeaveNestedRunLoop(); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 InspectorProfilerAgent(InstrumentingAgents*, InspectorCompositeState*, Injec
tedScriptManager*, InspectorOverlay*); | 78 InspectorProfilerAgent(InstrumentingAgents*, InspectorCompositeState*, Injec
tedScriptManager*, InspectorOverlay*); |
| 79 bool enabled(); | 79 bool enabled(); |
| 80 void doEnable(); | 80 void doEnable(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 94 InspectorOverlay* m_overlay; | 94 InspectorOverlay* m_overlay; |
| 95 | 95 |
| 96 void idleStarted(); | 96 void idleStarted(); |
| 97 void idleFinished(); | 97 void idleFinished(); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace WebCore | 100 } // namespace WebCore |
| 101 | 101 |
| 102 | 102 |
| 103 #endif // !defined(InspectorProfilerAgent_h) | 103 #endif // !defined(InspectorProfilerAgent_h) |
| OLD | NEW |