v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
local-logger.h
Go to the documentation of this file.
1// Copyright 2020 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_LOGGING_LOCAL_LOGGER_H_
6#define V8_LOGGING_LOCAL_LOGGER_H_
7
8#include "src/base/logging.h"
9#include "src/logging/log.h"
10
11namespace v8 {
12namespace internal {
13
14// TODO(leszeks): Add support for logging from off-thread.
16 public:
17 explicit LocalLogger(Isolate* isolate);
18
19 bool is_logging() const { return is_logging_; }
23 void ScriptDetails(Tagged<Script> script);
24 void ScriptEvent(ScriptEventType type, int script_id);
26 Address code_start, Tagged<TrustedByteArray> source_position_table,
27 JitCodeEvent::CodeType code_type);
28
29 void MapCreate(Tagged<Map> map);
30 void MapDetails(Tagged<Map> map);
31
32 private:
36};
37
38} // namespace internal
39} // namespace v8
40
41#endif // V8_LOGGING_LOCAL_LOGGER_H_
void MapDetails(Tagged< Map > map)
V8FileLogger * v8_file_logger_
void MapCreate(Tagged< Map > map)
LocalLogger(Isolate *isolate)
void CodeLinePosInfoRecordEvent(Address code_start, Tagged< TrustedByteArray > source_position_table, JitCodeEvent::CodeType code_type)
bool is_listening_to_code_events() const
void ScriptEvent(ScriptEventType type, int script_id)
void ScriptDetails(Tagged< Script > script)