v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cpu-profiler.h File Reference
#include "allocation.h"
#include "atomicops.h"
#include "circular-queue.h"
#include "platform/time.h"
#include "sampler.h"
#include "unbound-queue.h"
Include dependency graph for cpu-profiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  CodeEventRecord
 
class  CodeCreateEventRecord
 
class  CodeMoveEventRecord
 
class  SharedFunctionInfoMoveEventRecord
 
class  ReportBuiltinEventRecord
 
class  TickSampleEventRecord
 
class  CodeEventsContainer
 
class  ProfilerEventsProcessor
 
class  CpuProfiler
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define CODE_EVENTS_TYPE_LIST(V)
 
#define DECLARE_TYPE(type, ignore)   type,
 
#define DECLARE_CLASS(ignore, type)   type type##_;
 
#define PROFILE(IsolateGetter, Call)
 

Macro Definition Documentation

#define CODE_EVENTS_TYPE_LIST (   V)
Value:
V(CODE_CREATION, CodeCreateEventRecord) \
V(CODE_MOVE, CodeMoveEventRecord) \
V(SHARED_FUNC_MOVE, SharedFunctionInfoMoveEventRecord) \
V(REPORT_BUILTIN, ReportBuiltinEventRecord)

Definition at line 49 of file cpu-profiler.h.

#define DECLARE_CLASS (   ignore,
  type 
)    type type##_;

Definition at line 129 of file cpu-profiler.h.

#define DECLARE_TYPE (   type,
  ignore 
)    type,

Definition at line 58 of file cpu-profiler.h.

#define PROFILE (   IsolateGetter,
  Call 
)
Value:
do { \
Isolate* cpu_profiler_isolate = (IsolateGetter); \
v8::internal::Logger* logger = cpu_profiler_isolate->logger(); \
CpuProfiler* cpu_profiler = cpu_profiler_isolate->cpu_profiler(); \
if (logger->is_logging_code_events() || cpu_profiler->is_profiling()) { \
logger->Call; \
} \
} while (false)

Definition at line 194 of file cpu-profiler.h.

Referenced by KeyedStoreStubCompiler::CompileStoreElementPolymorphic(), SharedFunctionInfo::DisableOptimization(), BaseLoadStoreStubCompiler::GetCode(), BaseLoadStoreStubCompiler::GetICCode(), Logger::LogAccessorCallbacks(), Logger::LogExistingFunction(), MarkCompactCollector::MigrateObject(), Compiler::RecordFunctionCompilation(), MarkCompactCollector::ReportDeleteIfNeeded(), and Builtins::SetUp().