diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-02-02 12:21:57 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-02-12 08:13:00 +0000 |
commit | 606d85f2a5386472314d39923da28c70c60dc8e7 (patch) | |
tree | a8f4d7bf997f349f45605e6058259fba0630e4d7 /chromium/v8/include/v8-inspector.h | |
parent | 5786336dda477d04fb98483dca1a5426eebde2d7 (diff) | |
download | qtwebengine-chromium-606d85f2a5386472314d39923da28c70c60dc8e7.tar.gz |
BASELINE: Update Chromium to 96.0.4664.181
Change-Id: I762cd1da89d73aa6313b4a753fe126c34833f046
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/v8/include/v8-inspector.h')
-rw-r--r-- | chromium/v8/include/v8-inspector.h | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/chromium/v8/include/v8-inspector.h b/chromium/v8/include/v8-inspector.h index e6621ccd75c..74592fdf573 100644 --- a/chromium/v8/include/v8-inspector.h +++ b/chromium/v8/include/v8-inspector.h @@ -6,12 +6,20 @@ #define V8_V8_INSPECTOR_H_ #include <stdint.h> -#include <cctype> +#include <cctype> #include <memory> -#include <unordered_map> -#include "v8.h" // NOLINT(build/include_directory) +#include "v8-isolate.h" // NOLINT(build/include_directory) +#include "v8-local-handle.h" // NOLINT(build/include_directory) + +namespace v8 { +class Context; +class Name; +class Object; +class StackTrace; +class Value; +} // namespace v8 namespace v8_inspector { @@ -320,24 +328,6 @@ class V8_EXPORT V8Inspector { virtual std::unique_ptr<V8StackTrace> createStackTrace( v8::Local<v8::StackTrace>) = 0; virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; - - // Performance counters. - class V8_EXPORT Counters : public std::enable_shared_from_this<Counters> { - public: - explicit Counters(v8::Isolate* isolate); - ~Counters(); - const std::unordered_map<std::string, int>& getCountersMap() const { - return m_countersMap; - } - - private: - static int* getCounterPtr(const char* name); - - v8::Isolate* m_isolate; - std::unordered_map<std::string, int> m_countersMap; - }; - - virtual std::shared_ptr<Counters> enableCounters() = 0; }; } // namespace v8_inspector |