Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::AllocationFilter Class Reference
Inheritance diagram for dart::AllocationFilter:
dart::SampleFilter dart::ValueObject

Public Member Functions

 AllocationFilter (Dart_Port port, intptr_t cid, int64_t time_origin_micros=-1, int64_t time_extent_micros=-1)
 
bool FilterSample (Sample *sample)
 
void set_enable_vm_ticks (bool enable)
 
- Public Member Functions inherited from dart::SampleFilter
 SampleFilter (Dart_Port port, intptr_t thread_task_mask, int64_t time_origin_micros, int64_t time_extent_micros, bool take_samples=false)
 
virtual ~SampleFilter ()
 
Dart_Port port () const
 
bool TimeFilterSample (Sample *sample)
 
bool TaskFilterSample (Sample *sample)
 
bool take_samples () const
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Additional Inherited Members

- Static Public Attributes inherited from dart::SampleFilter
static constexpr intptr_t kNoTaskFilter = -1
 

Detailed Description

Definition at line 249 of file profiler_test.cc.

Constructor & Destructor Documentation

◆ AllocationFilter()

dart::AllocationFilter::AllocationFilter ( Dart_Port  port,
intptr_t  cid,
int64_t  time_origin_micros = -1,
int64_t  time_extent_micros = -1 
)
inline

Definition at line 251 of file profiler_test.cc.

257 time_origin_micros,
258 time_extent_micros),
259 cid_(cid),
260 enable_vm_ticks_(false) {}
SampleFilter(Dart_Port port, intptr_t thread_task_mask, int64_t time_origin_micros, int64_t time_extent_micros, bool take_samples=false)
Definition profiler.h:147
Dart_Port port() const
Definition profiler.h:167
const intptr_t cid

Member Function Documentation

◆ FilterSample()

bool dart::AllocationFilter::FilterSample ( Sample sample)
inlinevirtual

Reimplemented from dart::SampleFilter.

Definition at line 262 of file profiler_test.cc.

262 {
263 if (!enable_vm_ticks_ && (sample->vm_tag() == VMTag::kVMTagId)) {
264 // We don't want to see embedder ticks in the test.
265 return false;
266 }
267 return sample->is_allocation_sample() && (sample->allocation_cid() == cid_);
268 }

◆ set_enable_vm_ticks()

void dart::AllocationFilter::set_enable_vm_ticks ( bool  enable)
inline

Definition at line 270 of file profiler_test.cc.

270{ enable_vm_ticks_ = enable; }

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