a Sampling Profiler that runs peridically and calls the Sampler which servers as a value function to gather various profiling metrics as represented by ProfileSample. These profiling metrics are then posted to the Dart VM Service timeline.
More...
#include <sampling_profiler.h>
Public Member Functions | |
| SamplingProfiler (const char *thread_label, fml::RefPtr< fml::TaskRunner > profiler_task_runner, Sampler sampler, int num_samples_per_sec) | |
| Construct a new Sampling Profiler object. | |
| ~SamplingProfiler () | |
| void | Start () |
Starts the SamplingProfiler by triggering SampleRepeatedly. | |
| void | Stop () |
a Sampling Profiler that runs peridically and calls the Sampler which servers as a value function to gather various profiling metrics as represented by ProfileSample. These profiling metrics are then posted to the Dart VM Service timeline.
Definition at line 82 of file sampling_profiler.h.
| flutter::SamplingProfiler::SamplingProfiler | ( | const char * | thread_label, |
| fml::RefPtr< fml::TaskRunner > | profiler_task_runner, | ||
| Sampler | sampler, | ||
| int | num_samples_per_sec | ||
| ) |
Construct a new Sampling Profiler object.
| thread_label | Dart VM Service prefix to be set for the profiling task runner. |
| profiler_task_runner | the task runner to service sampling requests. |
| sampler | the value function to collect the profiling metrics. |
| num_samples_per_sec | number of times you wish to run the sampler per second. |
Definition at line 11 of file sampling_profiler.cc.
| flutter::SamplingProfiler::~SamplingProfiler | ( | ) |
Definition at line 21 of file sampling_profiler.cc.
References Stop().
| void flutter::SamplingProfiler::Start | ( | ) |
Starts the SamplingProfiler by triggering SampleRepeatedly.
Definition at line 27 of file sampling_profiler.cc.
References FML_CHECK, and fml::TimeDelta::FromSecondsF().
| void flutter::SamplingProfiler::Stop | ( | ) |
Definition at line 41 of file sampling_profiler.cc.
References FML_DCHECK.
Referenced by ~SamplingProfiler().