Flutter Engine
flutter::ProfilerMetricsIOS Class Reference

Utility class that gathers profiling metrics used by flutter::SamplingProfiler. More...

#include <profiler_metrics_ios.h>

Public Member Functions

 ProfilerMetricsIOS ()=default
 
ProfileSample GenerateSample ()
 

Detailed Description

Utility class that gathers profiling metrics used by flutter::SamplingProfiler.

See also
flutter::SamplingProfiler

Definition at line 24 of file profiler_metrics_ios.h.

Constructor & Destructor Documentation

◆ ProfilerMetricsIOS()

flutter::ProfilerMetricsIOS::ProfilerMetricsIOS ( )
default

Member Function Documentation

◆ GenerateSample()

ProfileSample flutter::ProfilerMetricsIOS::GenerateSample ( )

Definition at line 153 of file profiler_metrics_ios.mm.

References flutter::ProfileSample::cpu_usage, flutter::MemoryUsageInfo::dirty_memory_usage, FML_LOG, and flutter::CpuUsageInfo::num_threads.

153  {
154  return {.cpu_usage = CpuUsage(), .memory_usage = MemoryUsage(), .gpu_usage = PollGpuUsage()};
155 }

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