V8 Project
v8::internal::StatsTable Class Reference

#include <counters.h>

+ Collaboration diagram for v8::internal::StatsTable:

Public Member Functions

void SetCounterFunction (CounterLookupCallback f)
 
void SetCreateHistogramFunction (CreateHistogramCallback f)
 
void SetAddHistogramSampleFunction (AddHistogramSampleCallback f)
 
bool HasCounterFunction () const
 
intFindLocation (const char *name)
 
void * CreateHistogram (const char *name, int min, int max, size_t buckets)
 
void AddHistogramSample (void *histogram, int sample)
 

Private Member Functions

 StatsTable ()
 
 DISALLOW_COPY_AND_ASSIGN (StatsTable)
 

Private Attributes

CounterLookupCallback lookup_function_
 
CreateHistogramCallback create_histogram_function_
 
AddHistogramSampleCallback add_histogram_sample_function_
 

Friends

class Isolate
 

Detailed Description

Definition at line 21 of file counters.h.

Constructor & Destructor Documentation

◆ StatsTable()

v8::internal::StatsTable::StatsTable ( )
private

Definition at line 14 of file counters.cc.

CounterLookupCallback lookup_function_
Definition: counters.h:79
CreateHistogramCallback create_histogram_function_
Definition: counters.h:80
AddHistogramSampleCallback add_histogram_sample_function_
Definition: counters.h:81
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

Member Function Documentation

◆ AddHistogramSample()

void v8::internal::StatsTable::AddHistogramSample ( void *  histogram,
int  sample 
)
inline

Definition at line 71 of file counters.h.

71  {
72  if (!add_histogram_sample_function_) return;
73  return add_histogram_sample_function_(histogram, sample);
74  }

References add_histogram_sample_function_.

Referenced by v8::internal::Histogram::AddSample(), and v8::internal::CompilationCacheScript::Lookup().

+ Here is the caller graph for this function:

◆ CreateHistogram()

void* v8::internal::StatsTable::CreateHistogram ( const char *  name,
int  min,
int  max,
size_t  buckets 
)
inline

Definition at line 61 of file counters.h.

64  {
65  if (!create_histogram_function_) return NULL;
66  return create_histogram_function_(name, min, max, buckets);
67  }
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
static int min(int a, int b)
Definition: liveedit.cc:273

References create_histogram_function_, v8::internal::min(), name, and NULL.

Referenced by v8::internal::CompilationCacheScript::Lookup().

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

◆ DISALLOW_COPY_AND_ASSIGN()

v8::internal::StatsTable::DISALLOW_COPY_AND_ASSIGN ( StatsTable  )
private

◆ FindLocation()

int* v8::internal::StatsTable::FindLocation ( const char *  name)
inline

Definition at line 51 of file counters.h.

51  {
52  if (!lookup_function_) return NULL;
53  return lookup_function_(name);
54  }

References lookup_function_, name, and NULL.

Referenced by v8::internal::StatsCounter::FindLocationInStatsTable().

+ Here is the caller graph for this function:

◆ HasCounterFunction()

bool v8::internal::StatsTable::HasCounterFunction ( ) const
inline

Definition at line 41 of file counters.h.

41  {
42  return lookup_function_ != NULL;
43  }

References lookup_function_, and NULL.

◆ SetAddHistogramSampleFunction()

void v8::internal::StatsTable::SetAddHistogramSampleFunction ( AddHistogramSampleCallback  f)
inline

Definition at line 37 of file counters.h.

37  {
39  }

References add_histogram_sample_function_.

◆ SetCounterFunction()

void v8::internal::StatsTable::SetCounterFunction ( CounterLookupCallback  f)
inline

Definition at line 25 of file counters.h.

25  {
26  lookup_function_ = f;
27  }

References lookup_function_.

Referenced by v8::Isolate::SetCounterFunction().

+ Here is the caller graph for this function:

◆ SetCreateHistogramFunction()

void v8::internal::StatsTable::SetCreateHistogramFunction ( CreateHistogramCallback  f)
inline

Definition at line 31 of file counters.h.

31  {
33  }

References create_histogram_function_.

Referenced by v8::Isolate::SetCreateHistogramFunction().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Isolate

friend class Isolate
friend

Definition at line 83 of file counters.h.

Member Data Documentation

◆ add_histogram_sample_function_

AddHistogramSampleCallback v8::internal::StatsTable::add_histogram_sample_function_
private

Definition at line 81 of file counters.h.

Referenced by AddHistogramSample(), and SetAddHistogramSampleFunction().

◆ create_histogram_function_

CreateHistogramCallback v8::internal::StatsTable::create_histogram_function_
private

Definition at line 80 of file counters.h.

Referenced by CreateHistogram(), and SetCreateHistogramFunction().

◆ lookup_function_

CounterLookupCallback v8::internal::StatsTable::lookup_function_
private

Definition at line 79 of file counters.h.

Referenced by FindLocation(), HasCounterFunction(), and SetCounterFunction().


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