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 class InspectorFrontend; | 45 class InspectorFrontend; |
46 class InspectorOverlay; | 46 class InspectorOverlay; |
47 class InstrumentingAgents; | 47 class InstrumentingAgents; |
48 class ScriptState; | 48 class ScriptState; |
49 class ScriptCallStack; | 49 class ScriptCallStack; |
50 class ScriptProfile; | 50 class ScriptProfile; |
51 | 51 |
52 | 52 |
53 typedef String ErrorString; | 53 typedef String ErrorString; |
54 | 54 |
55 class InspectorProfilerAgent FINAL : public InspectorBaseAgent<InspectorProfiler
Agent>, public InspectorBackendDispatcher::ProfilerCommandHandler { | 55 class InspectorProfilerAgent final : public InspectorBaseAgent<InspectorProfiler
Agent>, public InspectorBackendDispatcher::ProfilerCommandHandler { |
56 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); | 56 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); |
57 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 57 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
58 public: | 58 public: |
59 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(InjectedScriptM
anager*, InspectorOverlay*); | 59 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(InjectedScriptM
anager*, InspectorOverlay*); |
60 virtual ~InspectorProfilerAgent(); | 60 virtual ~InspectorProfilerAgent(); |
61 virtual void trace(Visitor*) OVERRIDE; | 61 virtual void trace(Visitor*) override; |
62 | 62 |
63 void consoleProfile(ExecutionContext*, const String& title); | 63 void consoleProfile(ExecutionContext*, const String& title); |
64 void consoleProfileEnd(const String& title); | 64 void consoleProfileEnd(const String& title); |
65 | 65 |
66 virtual void enable(ErrorString*) OVERRIDE; | 66 virtual void enable(ErrorString*) override; |
67 virtual void disable(ErrorString*) OVERRIDE; | 67 virtual void disable(ErrorString*) override; |
68 virtual void setSamplingInterval(ErrorString*, int) OVERRIDE; | 68 virtual void setSamplingInterval(ErrorString*, int) override; |
69 virtual void start(ErrorString*) OVERRIDE; | 69 virtual void start(ErrorString*) override; |
70 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&)
OVERRIDE; | 70 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&)
override; |
71 | 71 |
72 virtual void setFrontend(InspectorFrontend*) OVERRIDE; | 72 virtual void setFrontend(InspectorFrontend*) override; |
73 virtual void clearFrontend() OVERRIDE; | 73 virtual void clearFrontend() override; |
74 virtual void restore() OVERRIDE; | 74 virtual void restore() override; |
75 | 75 |
76 void willProcessTask(); | 76 void willProcessTask(); |
77 void didProcessTask(); | 77 void didProcessTask(); |
78 void willEnterNestedRunLoop(); | 78 void willEnterNestedRunLoop(); |
79 void didLeaveNestedRunLoop(); | 79 void didLeaveNestedRunLoop(); |
80 | 80 |
81 private: | 81 private: |
82 InspectorProfilerAgent(InjectedScriptManager*, InspectorOverlay*); | 82 InspectorProfilerAgent(InjectedScriptManager*, InspectorOverlay*); |
83 bool enabled(); | 83 bool enabled(); |
84 void doEnable(); | 84 void doEnable(); |
(...skipping 13 matching lines...) Expand all Loading... |
98 InspectorOverlay* m_overlay; | 98 InspectorOverlay* m_overlay; |
99 | 99 |
100 void idleStarted(); | 100 void idleStarted(); |
101 void idleFinished(); | 101 void idleFinished(); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
105 | 105 |
106 | 106 |
107 #endif // !defined(InspectorProfilerAgent_h) | 107 #endif // !defined(InspectorProfilerAgent_h) |
OLD | NEW |