v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
log.h File Reference
#include <atomic>
#include <memory>
#include <set>
#include <string>
#include "include/v8-callbacks.h"
#include "include/v8-profiler.h"
#include "src/base/platform/elapsed-timer.h"
#include "src/execution/isolate.h"
#include "src/logging/code-events.h"
#include "src/objects/objects.h"
#include "src/regexp/regexp-flags.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8::internal::ExistingCodeLogger
 
class  v8::internal::V8FileLogger
 
class  v8::internal::TimerEventScope< TimerEvent >
 
class  v8::internal::CodeEventLogger
 
struct  v8::internal::CodeEvent
 
class  v8::internal::ExternalLogEventListener
 

Namespaces

namespace  v8
 
namespace  v8::sampler
 
namespace  v8::internal
 

Macros

#define LOG(isolate, Call)
 
#define LOG_CODE_EVENT(isolate, Call)
 
#define TIMER_EVENTS_LIST(V)
 
#define V(TimerName, expose)
 

Macro Definition Documentation

◆ LOG

#define LOG ( isolate,
Call )
Value:
do { \
if (v8::internal::v8_flags.log) (isolate)->v8_file_logger()->Call; \
} while (false)
Isolate * isolate
V8_EXPORT_PRIVATE FlagValues v8_flags

Definition at line 78 of file log.h.

◆ LOG_CODE_EVENT

#define LOG_CODE_EVENT ( isolate,
Call )
Value:
do { \
auto&& logger = (isolate)->v8_file_logger(); \
if (logger->is_listening_to_code_events()) logger->Call; \
} while (false)

Definition at line 83 of file log.h.

◆ TIMER_EVENTS_LIST

#define TIMER_EVENTS_LIST ( V)
Value:
V(RecompileSynchronous, true) \
V(RecompileConcurrent, true) \
V(CompileIgnition, true) \
V(CompileFullCode, true) \
V(OptimizeCode, true) \
V(CompileCode, true) \
V(CompileCodeBackground, true) \
V(DeoptimizeCode, true) \
V(Execute, true)
#define V(TimerName, expose)
Definition log.h:401

Definition at line 390 of file log.h.

◆ V

#define V ( TimerName,
expose )
Value:
class TimerEvent##TimerName : public AllStatic { \
public: \
static const char* name(void* unused = nullptr) { \
return "V8." #TimerName; \
} \
static bool expose_to_api() { return expose; } \
};
const char * name
Definition builtins.cc:39

Definition at line 401 of file log.h.