| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual ~Client() { } | 55 virtual ~Client() { } |
| 56 virtual void profilingStarted() { } | 56 virtual void profilingStarted() { } |
| 57 virtual void profilingStopped() { } | 57 virtual void profilingStopped() { } |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(V8Debugger*, Cl
ient*); | 60 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(V8Debugger*, Cl
ient*); |
| 61 ~InspectorProfilerAgent() override; | 61 ~InspectorProfilerAgent() override; |
| 62 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
| 63 | 63 |
| 64 // InspectorBaseAgent overrides. | 64 // InspectorBaseAgent overrides. |
| 65 void setState(PassRefPtr<JSONObject>) override; | 65 void setState(PassRefPtr<protocol::DictionaryValue>) override; |
| 66 void setFrontend(protocol::Frontend*) override; | 66 void setFrontend(protocol::Frontend*) override; |
| 67 void clearFrontend() override; | 67 void clearFrontend() override; |
| 68 void restore() override; | 68 void restore() override; |
| 69 | 69 |
| 70 void consoleProfile(ExecutionContext*, const String& title); | 70 void consoleProfile(ExecutionContext*, const String& title); |
| 71 void consoleProfileEnd(const String& title); | 71 void consoleProfileEnd(const String& title); |
| 72 | 72 |
| 73 void enable(ErrorString*) override; | 73 void enable(ErrorString*) override; |
| 74 void disable(ErrorString*) override; | 74 void disable(ErrorString*) override; |
| 75 void setSamplingInterval(ErrorString*, int) override; | 75 void setSamplingInterval(ErrorString*, int) override; |
| 76 void start(ErrorString*) override; | 76 void start(ErrorString*) override; |
| 77 void stop(ErrorString*, OwnPtr<protocol::Profiler::CPUProfile>*) override; | 77 void stop(ErrorString*, OwnPtr<protocol::Profiler::CPUProfile>*) override; |
| 78 | 78 |
| 79 void willProcessTask(); | 79 void willProcessTask(); |
| 80 void didProcessTask(); | 80 void didProcessTask(); |
| 81 void willEnterNestedRunLoop(); | 81 void willEnterNestedRunLoop(); |
| 82 void didLeaveNestedRunLoop(); | 82 void didLeaveNestedRunLoop(); |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 InspectorProfilerAgent(V8Debugger*, Client*); | 85 InspectorProfilerAgent(V8Debugger*, Client*); |
| 86 | 86 |
| 87 Client* m_client; | 87 Client* m_client; |
| 88 OwnPtr<V8ProfilerAgent> m_v8ProfilerAgent; | 88 OwnPtr<V8ProfilerAgent> m_v8ProfilerAgent; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace blink | 91 } // namespace blink |
| 92 | 92 |
| 93 | 93 |
| 94 #endif // !defined(InspectorProfilerAgent_h) | 94 #endif // !defined(InspectorProfilerAgent_h) |
| OLD | NEW |