Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Static Public Attributes | List of all members
flutter::FrameTiming Class Reference

#include <settings.h>

Public Types

enum  Phase {
  kVsyncStart , kBuildStart , kBuildFinish , kRasterStart ,
  kRasterFinish , kRasterFinishWallTime , kCount
}
 

Public Member Functions

fml::TimePoint Get (Phase phase) const
 
fml::TimePoint Set (Phase phase, fml::TimePoint value)
 
uint64_t GetFrameNumber () const
 
void SetFrameNumber (uint64_t frame_number)
 
uint64_t GetLayerCacheCount () const
 
uint64_t GetLayerCacheBytes () const
 
uint64_t GetPictureCacheCount () const
 
uint64_t GetPictureCacheBytes () const
 
void SetRasterCacheStatistics (size_t layer_cache_count, size_t layer_cache_bytes, size_t picture_cache_count, size_t picture_cache_bytes)
 

Static Public Attributes

static constexpr Phase kPhases [kCount]
 
static constexpr int kStatisticsCount = kCount + 5
 

Detailed Description

Definition at line 33 of file settings.h.

Member Enumeration Documentation

◆ Phase

Enumerator
kVsyncStart 
kBuildStart 
kBuildFinish 
kRasterStart 
kRasterFinish 
kRasterFinishWallTime 
kCount 

Definition at line 35 of file settings.h.

Member Function Documentation

◆ Get()

fml::TimePoint flutter::FrameTiming::Get ( Phase  phase) const
inline

Definition at line 51 of file settings.h.

51{ return data_[phase]; }

◆ GetFrameNumber()

uint64_t flutter::FrameTiming::GetFrameNumber ( ) const
inline

Definition at line 56 of file settings.h.

56{ return frame_number_; }

◆ GetLayerCacheBytes()

uint64_t flutter::FrameTiming::GetLayerCacheBytes ( ) const
inline

Definition at line 59 of file settings.h.

59{ return layer_cache_bytes_; }

◆ GetLayerCacheCount()

uint64_t flutter::FrameTiming::GetLayerCacheCount ( ) const
inline

Definition at line 58 of file settings.h.

58{ return layer_cache_count_; }

◆ GetPictureCacheBytes()

uint64_t flutter::FrameTiming::GetPictureCacheBytes ( ) const
inline

Definition at line 61 of file settings.h.

61{ return picture_cache_bytes_; }

◆ GetPictureCacheCount()

uint64_t flutter::FrameTiming::GetPictureCacheCount ( ) const
inline

Definition at line 60 of file settings.h.

60{ return picture_cache_count_; }

◆ Set()

fml::TimePoint flutter::FrameTiming::Set ( Phase  phase,
fml::TimePoint  value 
)
inline

Definition at line 52 of file settings.h.

52 {
53 return data_[phase] = value;
54 }
uint8_t value

◆ SetFrameNumber()

void flutter::FrameTiming::SetFrameNumber ( uint64_t  frame_number)
inline

Definition at line 57 of file settings.h.

57{ frame_number_ = frame_number; }

◆ SetRasterCacheStatistics()

void flutter::FrameTiming::SetRasterCacheStatistics ( size_t  layer_cache_count,
size_t  layer_cache_bytes,
size_t  picture_cache_count,
size_t  picture_cache_bytes 
)
inline

Definition at line 62 of file settings.h.

65 {
66 layer_cache_count_ = layer_cache_count;
67 layer_cache_bytes_ = layer_cache_bytes;
68 picture_cache_count_ = picture_cache_count;
69 picture_cache_bytes_ = picture_cache_bytes;
70 }

Member Data Documentation

◆ kPhases

constexpr FrameTiming::Phase flutter::FrameTiming::kPhases
staticconstexpr

◆ kStatisticsCount

constexpr int flutter::FrameTiming::kStatisticsCount = kCount + 5
staticconstexpr

Definition at line 49 of file settings.h.


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