Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
dart::ProcessedSample Class Reference

#include <profiler.h>

Inheritance diagram for dart::ProcessedSample:
dart::ZoneAllocated

Public Member Functions

 ProcessedSample ()
 
void Add (uword pc)
 
void InsertAt (intptr_t index, uword pc)
 
intptr_t length () const
 
uword At (intptr_t index) const
 
int64_t timestamp () const
 
void set_timestamp (int64_t timestamp)
 
ThreadId tid () const
 
void set_tid (ThreadId tid)
 
uword vm_tag () const
 
void set_vm_tag (uword tag)
 
uword user_tag () const
 
void set_user_tag (uword tag)
 
intptr_t allocation_cid () const
 
void set_allocation_cid (intptr_t cid)
 
uint32_t allocation_identity_hash () const
 
void set_allocation_identity_hash (uint32_t hash)
 
bool IsAllocationSample () const
 
bool truncated () const
 
void set_truncated (bool truncated)
 
bool first_frame_executing () const
 
void set_first_frame_executing (bool first_frame_executing)
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Friends

class SampleBuffer
 

Detailed Description

Definition at line 798 of file profiler.h.

Constructor & Destructor Documentation

◆ ProcessedSample()

dart::ProcessedSample::ProcessedSample ( )

Definition at line 1697 of file profiler.cc.

1699 timestamp_(0),
1700 vm_tag_(0),
1701 user_tag_(0),
1702 allocation_cid_(-1),
1703 allocation_identity_hash_(0),
1704 truncated_(false) {}
static constexpr int kPCArraySizeInWords
Definition: profiler.h:362

Member Function Documentation

◆ Add()

void dart::ProcessedSample::Add ( uword  pc)
inline

Definition at line 803 of file profiler.h.

803{ pcs_.Add(pc); }
void Add(const T &value)

◆ allocation_cid()

intptr_t dart::ProcessedSample::allocation_cid ( ) const
inline

Definition at line 834 of file profiler.h.

834{ return allocation_cid_; }

◆ allocation_identity_hash()

uint32_t dart::ProcessedSample::allocation_identity_hash ( ) const
inline

Definition at line 839 of file profiler.h.

839 {
840 return allocation_identity_hash_;
841 }

◆ At()

uword dart::ProcessedSample::At ( intptr_t  index) const
inline

Definition at line 812 of file profiler.h.

812 {
813 ASSERT(index >= 0);
814 ASSERT(index < length());
815 return pcs_[index];
816 }
intptr_t length() const
Definition: profiler.h:809
#define ASSERT(E)

◆ first_frame_executing()

bool dart::ProcessedSample::first_frame_executing ( ) const
inline

Definition at line 853 of file profiler.h.

853{ return first_frame_executing_; }

◆ InsertAt()

void dart::ProcessedSample::InsertAt ( intptr_t  index,
uword  pc 
)
inline

Definition at line 806 of file profiler.h.

806{ pcs_.InsertAt(index, pc); }
void InsertAt(intptr_t idx, const T &value)

◆ IsAllocationSample()

bool dart::ProcessedSample::IsAllocationSample ( ) const
inline

Definition at line 846 of file profiler.h.

846{ return allocation_cid_ > 0; }

◆ length()

intptr_t dart::ProcessedSample::length ( ) const
inline

Definition at line 809 of file profiler.h.

809{ return pcs_.length(); }
intptr_t length() const

◆ set_allocation_cid()

void dart::ProcessedSample::set_allocation_cid ( intptr_t  cid)
inline

Definition at line 835 of file profiler.h.

835{ allocation_cid_ = cid; }
const intptr_t cid

◆ set_allocation_identity_hash()

void dart::ProcessedSample::set_allocation_identity_hash ( uint32_t  hash)
inline

Definition at line 842 of file profiler.h.

842 {
843 allocation_identity_hash_ = hash;
844 }
static uint32_t hash(const SkShaderBase::GradientInfo &v)

◆ set_first_frame_executing()

void dart::ProcessedSample::set_first_frame_executing ( bool  first_frame_executing)
inline

Definition at line 854 of file profiler.h.

854 {
855 first_frame_executing_ = first_frame_executing;
856 }
bool first_frame_executing() const
Definition: profiler.h:853

◆ set_tid()

void dart::ProcessedSample::set_tid ( ThreadId  tid)
inline

Definition at line 823 of file profiler.h.

823{ tid_ = tid; }
ThreadId tid() const
Definition: profiler.h:822

◆ set_timestamp()

void dart::ProcessedSample::set_timestamp ( int64_t  timestamp)
inline

Definition at line 820 of file profiler.h.

820{ timestamp_ = timestamp; }
int64_t timestamp() const
Definition: profiler.h:819

◆ set_truncated()

void dart::ProcessedSample::set_truncated ( bool  truncated)
inline

Definition at line 850 of file profiler.h.

850{ truncated_ = truncated; }
bool truncated() const
Definition: profiler.h:849

◆ set_user_tag()

void dart::ProcessedSample::set_user_tag ( uword  tag)
inline

Definition at line 831 of file profiler.h.

831{ user_tag_ = tag; }

◆ set_vm_tag()

void dart::ProcessedSample::set_vm_tag ( uword  tag)
inline

Definition at line 827 of file profiler.h.

827{ vm_tag_ = tag; }

◆ tid()

ThreadId dart::ProcessedSample::tid ( ) const
inline

Definition at line 822 of file profiler.h.

822{ return tid_; }

◆ timestamp()

int64_t dart::ProcessedSample::timestamp ( ) const
inline

Definition at line 819 of file profiler.h.

819{ return timestamp_; }

◆ truncated()

bool dart::ProcessedSample::truncated ( ) const
inline

Definition at line 849 of file profiler.h.

849{ return truncated_; }

◆ user_tag()

uword dart::ProcessedSample::user_tag ( ) const
inline

Definition at line 830 of file profiler.h.

830{ return user_tag_; }

◆ vm_tag()

uword dart::ProcessedSample::vm_tag ( ) const
inline

Definition at line 826 of file profiler.h.

826{ return vm_tag_; }

Friends And Related Function Documentation

◆ SampleBuffer

friend class SampleBuffer
friend

Definition at line 878 of file profiler.h.


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