Flutter Engine
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 24 of file settings.h.

Member Enumeration Documentation

◆ Phase

Enumerator
kVsyncStart 
kBuildStart 
kBuildFinish 
kRasterStart 
kRasterFinish 
kRasterFinishWallTime 
kCount 

Definition at line 26 of file settings.h.

Member Function Documentation

◆ Get()

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

Definition at line 42 of file settings.h.

Referenced by flutter::Shell::GetDartVM(), flutter::testing::TEST(), and flutter::testing::TEST_F().

42 { return data_[phase]; }

◆ GetFrameNumber()

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

Definition at line 47 of file settings.h.

Referenced by flutter::Shell::GetDartVM().

47 { return frame_number_; }

◆ GetLayerCacheBytes()

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

Definition at line 50 of file settings.h.

Referenced by flutter::Shell::GetDartVM().

50 { return layer_cache_bytes_; }

◆ GetLayerCacheCount()

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

Definition at line 49 of file settings.h.

Referenced by flutter::Shell::GetDartVM().

49 { return layer_cache_count_; }

◆ GetPictureCacheBytes()

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

Definition at line 52 of file settings.h.

Referenced by flutter::Shell::GetDartVM().

52 { return picture_cache_bytes_; }

◆ GetPictureCacheCount()

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

Definition at line 51 of file settings.h.

Referenced by flutter::Shell::GetDartVM().

51 { return picture_cache_count_; }

◆ Set()

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

Definition at line 43 of file settings.h.

References value.

Referenced by flutter::FrameTimingsRecorder::RecordRasterEnd(), flutter::testing::TEST(), and flutter::testing::TEST_F().

43  {
44  return data_[phase] = value;
45  }
uint8_t value

◆ SetFrameNumber()

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

Definition at line 48 of file settings.h.

Referenced by flutter::FrameTimingsRecorder::RecordRasterEnd().

48 { 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 53 of file settings.h.

References kCount.

Referenced by flutter::FrameTimingsRecorder::RecordRasterEnd().

56  {
57  layer_cache_count_ = layer_cache_count;
58  layer_cache_bytes_ = layer_cache_bytes;
59  picture_cache_count_ = picture_cache_count;
60  picture_cache_bytes_ = picture_cache_bytes;
61  }

Member Data Documentation

◆ kPhases

◆ kStatisticsCount

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

Definition at line 40 of file settings.h.

Referenced by flutter::Shell::GetDartVM().


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