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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, ScriptState*); | 63 void consoleProfile(ExecutionContext*, const String& title); |
64 void consoleProfileEnd(const String& title, ScriptState*); | 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; |
(...skipping 23 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 |