V8 Project
counters.h File Reference
#include "include/v8.h"
#include "src/allocation.h"
#include "src/base/platform/elapsed-timer.h"
#include "src/globals.h"
#include "src/objects.h"
+ Include dependency graph for counters.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8::internal::StatsTable
 
class  v8::internal::StatsCounter
 
class  v8::internal::Histogram
 
class  v8::internal::HistogramTimer
 
class  v8::internal::BASE_EMBEDDED< Visitor >
 
class  v8::internal::Counters
 

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 v8::internal
 

Macros

#define HISTOGRAM_RANGE_LIST(HR)
 
#define HISTOGRAM_TIMER_LIST(HT)
 
#define HISTOGRAM_PERCENTAGE_LIST(HP)
 
#define HISTOGRAM_MEMORY_LIST(HM)
 
#define STATS_COUNTER_LIST_1(SC)
 
#define STATS_COUNTER_LIST_2(SC)
 
#define HR(name, caption, min, max, num_buckets)    Histogram* name() { return &name##_; }
 
#define HT(name, caption)    HistogramTimer* name() { return &name##_; }
 
#define HP(name, caption)    Histogram* name() { return &name##_; }
 
#define HM(name, caption)    Histogram* name() { return &name##_; }
 
#define SC(name, caption)    StatsCounter* name() { return &name##_; }
 
#define SC(name)
 
#define SC(name)
 
#define SC(name)
 
#define SC(name)
 
#define RATE_ID(name, caption)   k_##name,
 
#define PERCENTAGE_ID(name, caption)   k_##name,
 
#define MEMORY_ID(name, caption)   k_##name,
 
#define COUNTER_ID(name, caption)   k_##name,
 
#define COUNTER_ID(name)   kCountOf##name, kSizeOf##name,
 
#define COUNTER_ID(name)
 
#define COUNTER_ID(name)
 
#define COUNTER_ID(name)
 
#define HR(name, caption, min, max, num_buckets)   Histogram name##_;
 
#define HT(name, caption)    HistogramTimer name##_;
 
#define HP(name, caption)    Histogram name##_;
 
#define HM(name, caption)    Histogram name##_;
 
#define SC(name, caption)    StatsCounter name##_;
 
#define SC(name)
 
#define SC(name)
 
#define SC(name)
 
#define SC(name)
 

Macro Definition Documentation

◆ COUNTER_ID [1/5]

#define COUNTER_ID (   name)    kCountOf##name, kSizeOf##name,

Definition at line 642 of file counters.h.

◆ COUNTER_ID [2/5]

#define COUNTER_ID (   name)
Value:
kCountOfCODE_TYPE_##name, \
kSizeOfCODE_TYPE_##name,
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

Definition at line 642 of file counters.h.

◆ COUNTER_ID [3/5]

#define COUNTER_ID (   name)
Value:
kCountOfFIXED_ARRAY__##name, \
kSizeOfFIXED_ARRAY__##name,

Definition at line 642 of file counters.h.

◆ COUNTER_ID [4/5]

#define COUNTER_ID (   name)
Value:
kCountOfCODE_AGE__##name, \
kSizeOfCODE_AGE__##name,

Definition at line 642 of file counters.h.

◆ COUNTER_ID [5/5]

#define COUNTER_ID (   name,
  caption 
)    k_##name,

Definition at line 642 of file counters.h.

◆ HISTOGRAM_MEMORY_LIST

#define HISTOGRAM_MEMORY_LIST (   HM)
Value:
HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \
HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \
HM(heap_sample_map_space_committed, \
V8.MemoryHeapSampleMapSpaceCommitted) \
HM(heap_sample_cell_space_committed, \
V8.MemoryHeapSampleCellSpaceCommitted) \
HM(heap_sample_property_cell_space_committed, \
V8.MemoryHeapSamplePropertyCellSpaceCommitted) \
HM(heap_sample_code_space_committed, \
V8.MemoryHeapSampleCodeSpaceCommitted) \
HM(heap_sample_maximum_committed, \
V8.MemoryHeapSampleMaximumCommitted) \
#define HM(name, caption)
Definition: counters.h:667

Definition at line 360 of file counters.h.

◆ HISTOGRAM_PERCENTAGE_LIST

#define HISTOGRAM_PERCENTAGE_LIST (   HP)

Definition at line 320 of file counters.h.

◆ HISTOGRAM_RANGE_LIST

#define HISTOGRAM_RANGE_LIST (   HR)
Value:
/* Generic range histograms */ \
HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \
HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \
HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, 101)

Definition at line 294 of file counters.h.

◆ HISTOGRAM_TIMER_LIST

#define HISTOGRAM_TIMER_LIST (   HT)
Value:
/* Garbage collection timers. */ \
HT(gc_compactor, V8.GCCompactor) \
HT(gc_scavenger, V8.GCScavenger) \
HT(gc_context, V8.GCContext) /* GC context cleanup time */ \
HT(gc_idle_notification, V8.GCIdleNotification) \
HT(gc_incremental_marking, V8.GCIncrementalMarking) \
HT(gc_low_memory_notification, V8.GCLowMemoryNotification) \
/* Parsing timers. */ \
HT(parse, V8.Parse) \
HT(parse_lazy, V8.ParseLazy) \
HT(pre_parse, V8.PreParse) \
/* Total compilation times. */ \
HT(compile, V8.Compile) \
HT(compile_eval, V8.CompileEval) \
/* Serialization as part of compilation (code caching) */ \
HT(compile_serialize, V8.CompileSerialize) \
HT(compile_deserialize, V8.CompileDeserialize)

Definition at line 300 of file counters.h.

◆ HM [1/2]

#define HM (   name,
  caption 
)     Histogram* name() { return &name##_; }

Definition at line 667 of file counters.h.

◆ HM [2/2]

#define HM (   name,
  caption 
)     Histogram name##_;

Definition at line 667 of file counters.h.

◆ HP [1/2]

#define HP (   name,
  caption 
)     Histogram* name() { return &name##_; }

Definition at line 662 of file counters.h.

◆ HP [2/2]

#define HP (   name,
  caption 
)     Histogram name##_;

Definition at line 662 of file counters.h.

◆ HR [1/2]

#define HR (   name,
  caption,
  min,
  max,
  num_buckets 
)     Histogram* name() { return &name##_; }

Definition at line 653 of file counters.h.

◆ HR [2/2]

#define HR (   name,
  caption,
  min,
  max,
  num_buckets 
)    Histogram name##_;

Definition at line 653 of file counters.h.

◆ HT [1/2]

#define HT (   name,
  caption 
)     HistogramTimer* name() { return &name##_; }

Definition at line 657 of file counters.h.

◆ HT [2/2]

#define HT (   name,
  caption 
)     HistogramTimer name##_;

Definition at line 657 of file counters.h.

◆ MEMORY_ID

#define MEMORY_ID (   name,
  caption 
)    k_##name,

Definition at line 624 of file counters.h.

◆ PERCENTAGE_ID

#define PERCENTAGE_ID (   name,
  caption 
)    k_##name,

Definition at line 621 of file counters.h.

◆ RATE_ID

#define RATE_ID (   name,
  caption 
)    k_##name,

Definition at line 618 of file counters.h.

◆ SC [1/10]

#define SC (   name)
Value:
StatsCounter* count_of_##name() { return &count_of_##name##_; } \
StatsCounter* size_of_##name() { return &size_of_##name##_; }
#define _

Definition at line 696 of file counters.h.

◆ SC [2/10]

#define SC (   name)
Value:
StatsCounter* count_of_CODE_TYPE_##name() \
{ return &count_of_CODE_TYPE_##name##_; } \
StatsCounter* size_of_CODE_TYPE_##name() \
{ return &size_of_CODE_TYPE_##name##_; }

Definition at line 696 of file counters.h.

◆ SC [3/10]

#define SC (   name)
Value:
StatsCounter* count_of_FIXED_ARRAY_##name() \
{ return &count_of_FIXED_ARRAY_##name##_; } \
StatsCounter* size_of_FIXED_ARRAY_##name() \
{ return &size_of_FIXED_ARRAY_##name##_; }

Definition at line 696 of file counters.h.

◆ SC [4/10]

#define SC (   name)
Value:
StatsCounter* count_of_CODE_AGE_##name() \
{ return &count_of_CODE_AGE_##name##_; } \
StatsCounter* size_of_CODE_AGE_##name() \
{ return &size_of_CODE_AGE_##name##_; }

Definition at line 696 of file counters.h.

◆ SC [5/10]

#define SC (   name)
Value:
StatsCounter size_of_##name##_; \
StatsCounter count_of_##name##_;

Definition at line 696 of file counters.h.

◆ SC [6/10]

#define SC (   name)
Value:
StatsCounter size_of_CODE_TYPE_##name##_; \
StatsCounter count_of_CODE_TYPE_##name##_;

Definition at line 696 of file counters.h.

◆ SC [7/10]

#define SC (   name)
Value:
StatsCounter size_of_FIXED_ARRAY_##name##_; \
StatsCounter count_of_FIXED_ARRAY_##name##_;

Definition at line 696 of file counters.h.

◆ SC [8/10]

#define SC (   name)
Value:
StatsCounter size_of_CODE_AGE_##name##_; \
StatsCounter count_of_CODE_AGE_##name##_;

Definition at line 696 of file counters.h.

◆ SC [9/10]

#define SC (   name,
  caption 
)     StatsCounter* name() { return &name##_; }

Definition at line 696 of file counters.h.

◆ SC [10/10]

#define SC (   name,
  caption 
)     StatsCounter name##_;

Definition at line 696 of file counters.h.

◆ STATS_COUNTER_LIST_1

#define STATS_COUNTER_LIST_1 (   SC)

Definition at line 380 of file counters.h.

◆ STATS_COUNTER_LIST_2

#define STATS_COUNTER_LIST_2 (   SC)

Definition at line 433 of file counters.h.