| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 V8_V8_INSPECTOR_H_ | 5 #ifndef V8_V8_INSPECTOR_H_ |
| 6 #define V8_V8_INSPECTOR_H_ | 6 #define V8_V8_INSPECTOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <cctype> | 9 #include <cctype> |
| 10 | 10 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 public: | 217 public: |
| 218 static std::unique_ptr<V8Inspector> create(v8::Isolate*, V8InspectorClient*); | 218 static std::unique_ptr<V8Inspector> create(v8::Isolate*, V8InspectorClient*); |
| 219 virtual ~V8Inspector() {} | 219 virtual ~V8Inspector() {} |
| 220 | 220 |
| 221 // Contexts instrumentation. | 221 // Contexts instrumentation. |
| 222 virtual void contextCreated(const V8ContextInfo&) = 0; | 222 virtual void contextCreated(const V8ContextInfo&) = 0; |
| 223 virtual void contextDestroyed(v8::Local<v8::Context>) = 0; | 223 virtual void contextDestroyed(v8::Local<v8::Context>) = 0; |
| 224 virtual void resetContextGroup(int contextGroupId) = 0; | 224 virtual void resetContextGroup(int contextGroupId) = 0; |
| 225 | 225 |
| 226 // Various instrumentation. | 226 // Various instrumentation. |
| 227 virtual void willExecuteScript(v8::Local<v8::Context>, int scriptId) = 0; | |
| 228 virtual void didExecuteScript(v8::Local<v8::Context>) = 0; | |
| 229 virtual void idleStarted() = 0; | 227 virtual void idleStarted() = 0; |
| 230 virtual void idleFinished() = 0; | 228 virtual void idleFinished() = 0; |
| 231 | 229 |
| 232 // Async stack traces instrumentation. | 230 // Async stack traces instrumentation. |
| 233 virtual void asyncTaskScheduled(const StringView& taskName, void* task, | 231 virtual void asyncTaskScheduled(const StringView& taskName, void* task, |
| 234 bool recurring) = 0; | 232 bool recurring) = 0; |
| 235 virtual void asyncTaskCanceled(void* task) = 0; | 233 virtual void asyncTaskCanceled(void* task) = 0; |
| 236 virtual void asyncTaskStarted(void* task) = 0; | 234 virtual void asyncTaskStarted(void* task) = 0; |
| 237 virtual void asyncTaskFinished(void* task) = 0; | 235 virtual void asyncTaskFinished(void* task) = 0; |
| 238 virtual void allAsyncTasksCanceled() = 0; | 236 virtual void allAsyncTasksCanceled() = 0; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 260 | 258 |
| 261 // API methods. | 259 // API methods. |
| 262 virtual std::unique_ptr<V8StackTrace> createStackTrace( | 260 virtual std::unique_ptr<V8StackTrace> createStackTrace( |
| 263 v8::Local<v8::StackTrace>) = 0; | 261 v8::Local<v8::StackTrace>) = 0; |
| 264 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; | 262 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; |
| 265 }; | 263 }; |
| 266 | 264 |
| 267 } // namespace v8_inspector | 265 } // namespace v8_inspector |
| 268 | 266 |
| 269 #endif // V8_V8_INSPECTOR_H_ | 267 #endif // V8_V8_INSPECTOR_H_ |
| OLD | NEW |