OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_D8_CONSOLE_H_ |
| 6 #define V8_D8_CONSOLE_H_ |
| 7 |
| 8 #include "src/base/platform/time.h" |
| 9 #include "src/debug/debug-interface.h" |
| 10 #include "src/debug/interface-types.h" |
| 11 |
| 12 namespace v8 { |
| 13 |
| 14 class D8Console : public debug::ConsoleDelegate { |
| 15 public: |
| 16 explicit D8Console(Isolate* isolate); |
| 17 |
| 18 private: |
| 19 void Log(const debug::ConsoleCallArguments& args) override; |
| 20 void Error(const debug::ConsoleCallArguments& args) override; |
| 21 void Warn(const debug::ConsoleCallArguments& args) override; |
| 22 void Info(const debug::ConsoleCallArguments& args) override; |
| 23 void Debug(const debug::ConsoleCallArguments& args) override; |
| 24 void Time(const debug::ConsoleCallArguments& args) override; |
| 25 void TimeEnd(const debug::ConsoleCallArguments& args) override; |
| 26 |
| 27 Isolate* isolate_; |
| 28 std::map<std::string, base::TimeTicks> timers_; |
| 29 base::TimeTicks default_timer_; |
| 30 }; |
| 31 |
| 32 } // namespace v8 |
| 33 |
| 34 #endif // V8_D8_CONSOLE_H_ |
OLD | NEW |