V8 Project
v8::internal::TimerEventScope< TimerEvent > Class Template Reference

#include <log.h>

+ Collaboration diagram for v8::internal::TimerEventScope< TimerEvent >:

Public Member Functions

 TimerEventScope (Isolate *isolate)
 
 ~TimerEventScope ()
 
void LogTimerEvent (Logger::StartEnd se)
 

Private Attributes

Isolateisolate_
 

Detailed Description

template<class TimerEvent>
class v8::internal::TimerEventScope< TimerEvent >

Definition at line 442 of file log.h.

Constructor & Destructor Documentation

◆ TimerEventScope()

template<class TimerEvent >
v8::internal::TimerEventScope< TimerEvent >::TimerEventScope ( Isolate isolate)
inlineexplicit

Definition at line 444 of file log.h.

444  : isolate_(isolate) {
446  }
void LogTimerEvent(Logger::StartEnd se)
Definition: log.cc:960

References v8::internal::TimerEventScope< TimerEvent >::LogTimerEvent(), and v8::internal::Logger::START.

+ Here is the call graph for this function:

◆ ~TimerEventScope()

template<class TimerEvent >
v8::internal::TimerEventScope< TimerEvent >::~TimerEventScope ( )
inline

Definition at line 448 of file log.h.

References v8::internal::Logger::END, and v8::internal::TimerEventScope< TimerEvent >::LogTimerEvent().

+ Here is the call graph for this function:

Member Function Documentation

◆ LogTimerEvent()

template<class TimerEvent >
void v8::internal::TimerEventScope< TimerEvent >::LogTimerEvent ( Logger::StartEnd  se)

Definition at line 960 of file log.cc.

960  {
961  if (TimerEvent::expose_to_api() ||
962  isolate_->event_logger() == Logger::DefaultTimerEventsLogger) {
963  isolate_->event_logger()(TimerEvent::name(), se);
964  }
965 }
static void DefaultTimerEventsLogger(const char *name, int se)
Definition: log.cc:953
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name

References v8::internal::Logger::DefaultTimerEventsLogger(), and name.

Referenced by v8::internal::TimerEventScope< TimerEvent >::TimerEventScope(), and v8::internal::TimerEventScope< TimerEvent >::~TimerEventScope().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ isolate_

template<class TimerEvent >
Isolate* v8::internal::TimerEventScope< TimerEvent >::isolate_
private

Definition at line 453 of file log.h.


The documentation for this class was generated from the following files: