#include <profiler.h>
Definition at line 145 of file profiler.h.
◆ SampleFilter()
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 |
|
) |
| |
|
inline |
Definition at line 147 of file profiler.h.
153 thread_task_mask_(thread_task_mask),
154 time_origin_micros_(time_origin_micros),
155 time_extent_micros_(time_extent_micros),
157 ASSERT(thread_task_mask != 0);
158 ASSERT(time_origin_micros_ >= -1);
159 ASSERT(time_extent_micros_ >= -1);
160 }
bool take_samples() const
◆ ~SampleFilter()
virtual dart::SampleFilter::~SampleFilter |
( |
| ) |
|
|
inlinevirtual |
◆ FilterSample()
virtual bool dart::SampleFilter::FilterSample |
( |
Sample * |
sample | ) |
|
|
inlinevirtual |
◆ port()
◆ take_samples()
bool dart::SampleFilter::take_samples |
( |
| ) |
const |
|
inline |
Definition at line 175 of file profiler.h.
175{ return take_samples_; }
◆ TaskFilterSample()
bool dart::SampleFilter::TaskFilterSample |
( |
Sample * |
sample | ) |
|
Definition at line 985 of file profiler.cc.
985 {
986 const intptr_t task = static_cast<intptr_t>(sample->thread_task());
988 return true;
989 }
990 return (task & thread_task_mask_) != 0;
991}
static constexpr intptr_t kNoTaskFilter
◆ TimeFilterSample()
bool dart::SampleFilter::TimeFilterSample |
( |
Sample * |
sample | ) |
|
Definition at line 975 of file profiler.cc.
975 {
976 if ((time_origin_micros_ == -1) || (time_extent_micros_ == -1)) {
977
978 return true;
979 }
980 const int64_t timestamp = sample->timestamp();
981 int64_t
delta = timestamp - time_origin_micros_;
982 return (
delta >= 0) && (
delta <= time_extent_micros_);
983}
◆ kNoTaskFilter
constexpr intptr_t dart::SampleFilter::kNoTaskFilter = -1 |
|
staticconstexpr |
The documentation for this class was generated from the following files: