v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::CpuProfile Class Reference

#include <profile-generator.h>

Collaboration diagram for v8::internal::CpuProfile:

Classes

struct  SampleInfo
 

Public Member Functions

V8_EXPORT_PRIVATE CpuProfile (CpuProfiler *profiler, ProfilerId id, const char *title, CpuProfilingOptions options, std::unique_ptr< DiscardedSamplesDelegate > delegate=nullptr)
 
 CpuProfile (const CpuProfile &)=delete
 
CpuProfileoperator= (const CpuProfile &)=delete
 
V8_EXPORT_PRIVATE bool CheckSubsample (base::TimeDelta sampling_interval)
 
void AddPath (base::TimeTicks timestamp, const ProfileStackTrace &path, int src_line, bool update_stats, base::TimeDelta sampling_interval, StateTag state, EmbedderStateTag embedder_state, const std::optional< uint64_t > trace_id=std::nullopt)
 
void FinishProfile ()
 
const char * title () const
 
const ProfileTreetop_down () const
 
int samples_count () const
 
const SampleInfosample (int index) const
 
int64_t sampling_interval_us () const
 
base::TimeTicks start_time () const
 
base::TimeTicks end_time () const
 
CpuProfilercpu_profiler () const
 
ContextFiltercontext_filter ()
 
ProfilerId id () const
 
void UpdateTicksScale ()
 
V8_EXPORT_PRIVATE void Print () const
 

Private Member Functions

void StreamPendingTraceEvents ()
 

Private Attributes

const char * title_
 
const CpuProfilingOptions options_
 
std::unique_ptr< DiscardedSamplesDelegatedelegate_
 
ContextFilter context_filter_
 
base::TimeTicks start_time_
 
base::TimeTicks end_time_
 
std::deque< SampleInfosamples_
 
ProfileTree top_down_
 
CpuProfiler *const profiler_
 
size_t streaming_next_sample_
 
const ProfilerId id_
 
base::TimeDelta next_sample_delta_
 

Detailed Description

Definition at line 409 of file profile-generator.h.

Constructor & Destructor Documentation

◆ CpuProfile() [1/2]

v8::internal::CpuProfile::CpuProfile ( CpuProfiler * profiler,
ProfilerId id,
const char * title,
CpuProfilingOptions options,
std::unique_ptr< DiscardedSamplesDelegate > delegate = nullptr )

Definition at line 572 of file profile-generator.cc.

Here is the call graph for this function:

◆ CpuProfile() [2/2]

v8::internal::CpuProfile::CpuProfile ( const CpuProfile & )
delete

Member Function Documentation

◆ AddPath()

void v8::internal::CpuProfile::AddPath ( base::TimeTicks timestamp,
const ProfileStackTrace & path,
int src_line,
bool update_stats,
base::TimeDelta sampling_interval,
StateTag state,
EmbedderStateTag embedder_state,
const std::optional< uint64_t > trace_id = std::nullopt )

Definition at line 621 of file profile-generator.cc.

Here is the call graph for this function:

◆ CheckSubsample()

bool v8::internal::CpuProfile::CheckSubsample ( base::TimeDelta sampling_interval)

Definition at line 604 of file profile-generator.cc.

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

◆ context_filter()

ContextFilter & v8::internal::CpuProfile::context_filter ( )
inline

Definition at line 451 of file profile-generator.h.

◆ cpu_profiler()

CpuProfiler * v8::internal::CpuProfile::cpu_profiler ( ) const
inline

Definition at line 450 of file profile-generator.h.

◆ end_time()

base::TimeTicks v8::internal::CpuProfile::end_time ( ) const
inline

Definition at line 449 of file profile-generator.h.

Here is the caller graph for this function:

◆ FinishProfile()

void v8::internal::CpuProfile::FinishProfile ( )

Definition at line 761 of file profile-generator.cc.

Here is the call graph for this function:

◆ id()

ProfilerId v8::internal::CpuProfile::id ( ) const
inline

Definition at line 452 of file profile-generator.h.

Here is the caller graph for this function:

◆ operator=()

CpuProfile & v8::internal::CpuProfile::operator= ( const CpuProfile & )
delete

◆ Print()

void v8::internal::CpuProfile::Print ( ) const

Definition at line 932 of file profile-generator.cc.

Here is the call graph for this function:

◆ sample()

const SampleInfo & v8::internal::CpuProfile::sample ( int index) const
inline

Definition at line 442 of file profile-generator.h.

Here is the caller graph for this function:

◆ samples_count()

int v8::internal::CpuProfile::samples_count ( ) const
inline

Definition at line 441 of file profile-generator.h.

Here is the caller graph for this function:

◆ sampling_interval_us()

int64_t v8::internal::CpuProfile::sampling_interval_us ( ) const
inline

Definition at line 444 of file profile-generator.h.

◆ start_time()

base::TimeTicks v8::internal::CpuProfile::start_time ( ) const
inline

Definition at line 448 of file profile-generator.h.

Here is the caller graph for this function:

◆ StreamPendingTraceEvents()

void v8::internal::CpuProfile::StreamPendingTraceEvents ( )
private

Definition at line 688 of file profile-generator.cc.

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

◆ title()

const char * v8::internal::CpuProfile::title ( ) const
inline

Definition at line 438 of file profile-generator.h.

◆ top_down()

const ProfileTree * v8::internal::CpuProfile::top_down ( ) const
inline

Definition at line 439 of file profile-generator.h.

Here is the caller graph for this function:

◆ UpdateTicksScale()

void v8::internal::CpuProfile::UpdateTicksScale ( )

Member Data Documentation

◆ context_filter_

ContextFilter v8::internal::CpuProfile::context_filter_
private

Definition at line 464 of file profile-generator.h.

◆ delegate_

std::unique_ptr<DiscardedSamplesDelegate> v8::internal::CpuProfile::delegate_
private

Definition at line 463 of file profile-generator.h.

◆ end_time_

base::TimeTicks v8::internal::CpuProfile::end_time_
private

Definition at line 466 of file profile-generator.h.

◆ id_

const ProfilerId v8::internal::CpuProfile::id_
private

Definition at line 471 of file profile-generator.h.

◆ next_sample_delta_

base::TimeDelta v8::internal::CpuProfile::next_sample_delta_
private

Definition at line 474 of file profile-generator.h.

◆ options_

const CpuProfilingOptions v8::internal::CpuProfile::options_
private

Definition at line 462 of file profile-generator.h.

◆ profiler_

CpuProfiler* const v8::internal::CpuProfile::profiler_
private

Definition at line 469 of file profile-generator.h.

◆ samples_

std::deque<SampleInfo> v8::internal::CpuProfile::samples_
private

Definition at line 467 of file profile-generator.h.

◆ start_time_

base::TimeTicks v8::internal::CpuProfile::start_time_
private

Definition at line 465 of file profile-generator.h.

◆ streaming_next_sample_

size_t v8::internal::CpuProfile::streaming_next_sample_
private

Definition at line 470 of file profile-generator.h.

◆ title_

const char* v8::internal::CpuProfile::title_
private

Definition at line 461 of file profile-generator.h.

◆ top_down_

ProfileTree v8::internal::CpuProfile::top_down_
private

Definition at line 468 of file profile-generator.h.


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