V8 Project
v8::internal::Ticker Class Reference
+ Inheritance diagram for v8::internal::Ticker:
+ Collaboration diagram for v8::internal::Ticker:

Public Member Functions

 Ticker (Isolate *isolate, int interval)
 
 ~Ticker ()
 
virtual void Tick (TickSample *sample)
 
void SetProfiler (Profiler *profiler)
 
void ClearProfiler ()
 
- Public Member Functions inherited from v8::internal::Sampler
 Sampler (Isolate *isolate, int interval)
 
virtual ~Sampler ()
 
Isolateisolate () const
 
int interval () const
 
void SampleStack (const RegisterState &regs)
 
void Start ()
 
void Stop ()
 
bool IsProfiling () const
 
void IncreaseProfilingDepth ()
 
void DecreaseProfilingDepth ()
 
bool IsActive () const
 
void DoSample ()
 
void SetHasProcessingThread (bool value)
 
unsigned js_and_external_sample_count () const
 
void StartCountingSamples ()
 
PlatformData * platform_data () const
 

Private Attributes

Profilerprofiler_
 

Additional Inherited Members

- Static Public Member Functions inherited from v8::internal::Sampler
static void SetUp ()
 
static void TearDown ()
 

Detailed Description

Definition at line 663 of file log.cc.

Constructor & Destructor Documentation

◆ Ticker()

v8::internal::Ticker::Ticker ( Isolate isolate,
int  interval 
)
inline

Definition at line 665 of file log.cc.

665  :
667  profiler_(NULL) {}
Sampler(Isolate *isolate, int interval)
Definition: sampler.cc:637
int interval() const
Definition: sampler.h:67
Isolate * isolate() const
Definition: sampler.h:66
Profiler * profiler_
Definition: log.cc:689
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 NULL

◆ ~Ticker()

v8::internal::Ticker::~Ticker ( )
inline

Definition at line 669 of file log.cc.

669 { if (IsActive()) Stop(); }
bool IsActive() const
Definition: sampler.h:85

References v8::internal::Sampler::IsActive(), and v8::internal::Sampler::Stop().

+ Here is the call graph for this function:

Member Function Documentation

◆ ClearProfiler()

void v8::internal::Ticker::ClearProfiler ( )
inline

Definition at line 682 of file log.cc.

682  {
683  profiler_ = NULL;
684  if (IsActive()) Stop();
686  }
void DecreaseProfilingDepth()
Definition: sampler.cc:677

References v8::internal::Sampler::DecreaseProfilingDepth(), v8::internal::Sampler::IsActive(), NULL, profiler_, and v8::internal::Sampler::Stop().

Referenced by v8::internal::Profiler::Disengage().

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

◆ SetProfiler()

void v8::internal::Ticker::SetProfiler ( Profiler profiler)
inline

Definition at line 675 of file log.cc.

675  {
676  DCHECK(profiler_ == NULL);
679  if (!IsActive()) Start();
680  }
void IncreaseProfilingDepth()
Definition: sampler.cc:669
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 only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the A file to write the raw snapshot bytes A file to write the raw context snapshot bytes Write V8 startup blob Print the time it takes to lazily compile hydrogen code stubs dump only objects containing this substring stress the GC compactor to flush out pretty print source code for builtins print C code to recreate TurboFan graphs report heap spill statistics along with enable possessive quantifier syntax for testing Minimal Log code events to the log file without profiling log positions Log statistical profiling Used with turns on browser compatible mode for profiling Enable perf linux profiler(experimental annotate support).") DEFINE_STRING(gc_fake_mmap
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, v8::internal::Sampler::IncreaseProfilingDepth(), v8::internal::Sampler::IsActive(), NULL, profiler(), profiler_, and v8::internal::Sampler::Start().

Referenced by v8::internal::Profiler::Engage().

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

◆ Tick()

virtual void v8::internal::Ticker::Tick ( TickSample sample)
inlinevirtual

Implements v8::internal::Sampler.

Definition at line 671 of file log.cc.

671  {
672  if (profiler_) profiler_->Insert(sample);
673  }
void Insert(TickSample *sample)
Definition: log.cc:604

References v8::internal::Profiler::Insert(), and profiler_.

+ Here is the call graph for this function:

Member Data Documentation

◆ profiler_

Profiler* v8::internal::Ticker::profiler_
private

Definition at line 689 of file log.cc.

Referenced by ClearProfiler(), SetProfiler(), and Tick().


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