OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8ProfilerAgent_h | 5 #ifndef V8ProfilerAgent_h |
6 #define V8ProfilerAgent_h | 6 #define V8ProfilerAgent_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/inspector_protocol/Dispatcher.h" | 9 #include "platform/inspector_protocol/Dispatcher.h" |
10 #include "platform/v8_inspector/public/V8Debugger.h" | 10 #include "platform/v8_inspector/public/V8Debugger.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class PLATFORM_EXPORT V8ProfilerAgent : public protocol::Backend::Profiler, publ
ic V8Debugger::Agent<protocol::Frontend::Profiler> { | 14 class PLATFORM_EXPORT V8ProfilerAgent : public protocol::Backend::Profiler, publ
ic V8Debugger::Agent<protocol::Frontend::Profiler> { |
15 public: | 15 public: |
16 virtual ~V8ProfilerAgent() { } | 16 virtual ~V8ProfilerAgent() { } |
17 | 17 |
18 // API for the embedder. | |
19 virtual void consoleProfile(const String16& title) = 0; | |
20 virtual void consoleProfileEnd(const String16& title) = 0; | |
21 | |
22 virtual void idleStarted() = 0; | 18 virtual void idleStarted() = 0; |
23 virtual void idleFinished() = 0; | 19 virtual void idleFinished() = 0; |
24 }; | 20 }; |
25 | 21 |
26 } // namespace blink | 22 } // namespace blink |
27 | 23 |
28 | 24 |
29 #endif // !defined(V8ProfilerAgent_h) | 25 #endif // !defined(V8ProfilerAgent_h) |
OLD | NEW |