Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 805 of file profiler.h.

Constructor & Destructor Documentation

◆ ProcessedSample()

dart::ProcessedSample::ProcessedSample ( )

Definition at line 1691 of file profiler.cc.

1693 timestamp_(0),
1694 vm_tag_(0),
1695 user_tag_(0),
1696 allocation_cid_(-1),
1697 allocation_identity_hash_(0),
1698 truncated_(false) {}
static constexpr int kPCArraySizeInWords
Definition profiler.h:362

Member Function Documentation

◆ Add()

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

Definition at line 810 of file profiler.h.

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

◆ allocation_cid()

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

Definition at line 841 of file profiler.h.

841{ return allocation_cid_; }

◆ allocation_identity_hash()

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

Definition at line 846 of file profiler.h.

846 {
847 return allocation_identity_hash_;
848 }

◆ At()

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

Definition at line 819 of file profiler.h.

819 {
820 ASSERT(index >= 0);
821 ASSERT(index < length());
822 return pcs_[index];
823 }
intptr_t length() const
Definition profiler.h:816
#define ASSERT(E)

◆ first_frame_executing()

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

Definition at line 860 of file profiler.h.

860{ return first_frame_executing_; }

◆ InsertAt()

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

Definition at line 813 of file profiler.h.

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

◆ IsAllocationSample()

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

Definition at line 853 of file profiler.h.

853{ return allocation_cid_ > 0; }

◆ length()

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

Definition at line 816 of file profiler.h.

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

◆ set_allocation_cid()

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

Definition at line 842 of file profiler.h.

842{ 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 849 of file profiler.h.

849 {
850 allocation_identity_hash_ = hash;
851 }
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 861 of file profiler.h.

861 {
862 first_frame_executing_ = first_frame_executing;
863 }
bool first_frame_executing() const
Definition profiler.h:860

◆ set_tid()

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

Definition at line 830 of file profiler.h.

830{ tid_ = tid; }
ThreadId tid() const
Definition profiler.h:829

◆ set_timestamp()

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

Definition at line 827 of file profiler.h.

827{ timestamp_ = timestamp; }
int64_t timestamp() const
Definition profiler.h:826

◆ set_truncated()

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

Definition at line 857 of file profiler.h.

857{ truncated_ = truncated; }
bool truncated() const
Definition profiler.h:856

◆ set_user_tag()

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

Definition at line 838 of file profiler.h.

838{ user_tag_ = tag; }

◆ set_vm_tag()

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

Definition at line 834 of file profiler.h.

834{ vm_tag_ = tag; }

◆ tid()

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

Definition at line 829 of file profiler.h.

829{ return tid_; }

◆ timestamp()

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

Definition at line 826 of file profiler.h.

826{ return timestamp_; }

◆ truncated()

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

Definition at line 856 of file profiler.h.

856{ return truncated_; }

◆ user_tag()

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

Definition at line 837 of file profiler.h.

837{ return user_tag_; }

◆ vm_tag()

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

Definition at line 833 of file profiler.h.

833{ return vm_tag_; }

Friends And Related Symbol Documentation

◆ SampleBuffer

friend class SampleBuffer
friend

Definition at line 885 of file profiler.h.


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