v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category > Class Template Reference
Collaboration diagram for cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >:

Public Member Functions

template<typename... Args>
 InternalScope (StatsCollector *stats_collector, ScopeIdType scope_id, Args... args)
 
 ~InternalScope ()
 
 InternalScope (const InternalScope &)=delete
 
InternalScopeoperator= (const InternalScope &)=delete
 
void DecreaseStartTimeForTesting (v8::base::TimeDelta delta)
 

Private Types

using ScopeIdType
 

Private Member Functions

void * operator new (size_t, void *)=delete
 
void * operator new (size_t)=delete
 
template<typename... Args>
void StartTrace (Args... args)
 
void StopTrace ()
 
void StartTraceImpl ()
 
template<typename Value1 >
void StartTraceImpl (const char *k1, Value1 v1)
 
template<typename Value1 , typename Value2 >
void StartTraceImpl (const char *k1, Value1 v1, const char *k2, Value2 v2)
 
void StopTraceImpl ()
 
void IncreaseScopeTime ()
 

Static Private Member Functions

static constexpr const char * TraceCategory ()
 

Private Attributes

StatsCollector *const stats_collector_
 
v8::base::TimeTicks start_time_
 
const ScopeIdType scope_id_
 

Detailed Description

template<TraceCategory trace_category, ScopeContext scope_category>
class cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >

Definition at line 175 of file stats-collector.h.

Member Typedef Documentation

◆ ScopeIdType

template<TraceCategory trace_category, ScopeContext scope_category>
using cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::ScopeIdType
private

Constructor & Destructor Documentation

◆ InternalScope() [1/2]

template<TraceCategory trace_category, ScopeContext scope_category>
template<typename... Args>
cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::InternalScope ( StatsCollector * stats_collector,
ScopeIdType scope_id,
Args... args )
inline

Definition at line 181 of file stats-collector.h.

◆ ~InternalScope()

template<TraceCategory trace_category, ScopeContext scope_category>
cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::~InternalScope ( )
inline

Definition at line 198 of file stats-collector.h.

◆ InternalScope() [2/2]

template<TraceCategory trace_category, ScopeContext scope_category>
cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::InternalScope ( const InternalScope< trace_category, scope_category > & )
delete

Member Function Documentation

◆ DecreaseStartTimeForTesting()

template<TraceCategory trace_category, ScopeContext scope_category>
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::DecreaseStartTimeForTesting ( v8::base::TimeDelta delta)
inline

Definition at line 206 of file stats-collector.h.

◆ IncreaseScopeTime()

template<TraceCategory trace_category, ScopeContext scope_category>
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::IncreaseScopeTime ( )
inlineprivate

Definition at line 498 of file stats-collector.h.

Here is the call graph for this function:

◆ operator new() [1/2]

template<TraceCategory trace_category, ScopeContext scope_category>
void * cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::operator new ( size_t )
privatedelete

◆ operator new() [2/2]

template<TraceCategory trace_category, ScopeContext scope_category>
void * cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::operator new ( size_t ,
void *  )
privatedelete

◆ operator=()

template<TraceCategory trace_category, ScopeContext scope_category>
InternalScope & cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::operator= ( const InternalScope< trace_category, scope_category > & )
delete

◆ StartTrace()

template<TraceCategory trace_category, ScopeContext scope_category>
template<typename... Args>
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::StartTrace ( Args... args)
inlineprivate

Definition at line 434 of file stats-collector.h.

◆ StartTraceImpl() [1/3]

template<TraceCategory trace_category, ScopeContext scope_category>
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::StartTraceImpl ( )
inlineprivate

Definition at line 455 of file stats-collector.h.

◆ StartTraceImpl() [2/3]

template<TraceCategory trace_category, ScopeContext scope_category>
template<typename Value1 >
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::StartTraceImpl ( const char * k1,
Value1 v1 )
inlineprivate

Definition at line 465 of file stats-collector.h.

◆ StartTraceImpl() [3/3]

template<TraceCategory trace_category, ScopeContext scope_category>
template<typename Value1 , typename Value2 >
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::StartTraceImpl ( const char * k1,
Value1 v1,
const char * k2,
Value2 v2 )
inlineprivate

Definition at line 476 of file stats-collector.h.

◆ StopTrace()

template<TraceCategory trace_category, ScopeContext scope_category>
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::StopTrace ( )
inlineprivate

Definition at line 448 of file stats-collector.h.

◆ StopTraceImpl()

template<TraceCategory trace_category, ScopeContext scope_category>
void cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::StopTraceImpl ( )
inlineprivate

Definition at line 487 of file stats-collector.h.

◆ TraceCategory()

template<TraceCategory trace_category, ScopeContext scope_category>
const char * cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::TraceCategory ( )
inlinestaticconstexprprivate

Definition at line 422 of file stats-collector.h.

Member Data Documentation

◆ scope_id_

template<TraceCategory trace_category, ScopeContext scope_category>
const ScopeIdType cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::scope_id_
private

Definition at line 232 of file stats-collector.h.

◆ start_time_

template<TraceCategory trace_category, ScopeContext scope_category>
v8::base::TimeTicks cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::start_time_
private

Definition at line 231 of file stats-collector.h.

◆ stats_collector_

template<TraceCategory trace_category, ScopeContext scope_category>
StatsCollector* const cppgc::internal::StatsCollector::InternalScope< trace_category, scope_category >::stats_collector_
private

Definition at line 230 of file stats-collector.h.


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