Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
NonRenderingBenchmarkTarget Class Reference
Inheritance diagram for NonRenderingBenchmarkTarget:
RasterBenchmarkTarget BenchmarkTarget

Public Member Functions

 NonRenderingBenchmarkTarget (Benchmark *benchmark)
 
Benchmark::Backend getBackend () const override
 
SurfaceManager::CpuOrGpu isCpuOrGpuBound () const override
 
std::map< std::string, std::string > getKeyValuePairs (std::string cpuName, std::string gpuName) const override
 
- Public Member Functions inherited from RasterBenchmarkTarget
 RasterBenchmarkTarget (std::unique_ptr< SurfaceManager > surfaceManager, Benchmark *benchmark)
 
Benchmark::Backend getBackend () const override
 
std::tuple< int, bool > autoTuneLoops () const override
 
- Public Member Functions inherited from BenchmarkTarget
virtual ~BenchmarkTarget ()=default
 
virtual Benchmark::Backend getBackend () const =0
 
virtual void setup () const
 
virtual std::tuple< int, bool > autoTuneLoops () const =0
 
virtual void warmUp (int loops) const
 
double time (int loops) const
 
void tearDown () const
 
virtual void dumpStats (skia_private::TArray< SkString > *keys, skia_private::TArray< double > *values) const
 
virtual void printStats () const
 
SkCanvasgetCanvas () const
 
BenchmarkgetBenchmark () const
 
virtual std::map< std::string, std::string > getKeyValuePairs (std::string cpuName, std::string gpuName) const
 
virtual SurfaceManager::CpuOrGpu isCpuOrGpuBound () const
 

Additional Inherited Members

- Static Public Member Functions inherited from BenchmarkTarget
static std::unique_ptr< BenchmarkTargetFromConfig (std::string surfaceConfig, Benchmark *benchmark)
 
static void printGlobalStats ()
 
- Protected Member Functions inherited from BenchmarkTarget
 BenchmarkTarget (std::unique_ptr< SurfaceManager > surfaceManager, Benchmark *benchmark)
 
virtual SkCanvasonBeforeDraw (SkCanvas *canvas) const
 
virtual void onAfterDraw () const
 
double nowMs () const
 
- Protected Attributes inherited from BenchmarkTarget
std::unique_ptr< SurfaceManagerfSurfaceManager
 
BenchmarkfBenchmark
 

Detailed Description

Definition at line 85 of file RasterBenchmarkTarget.cpp.

Constructor & Destructor Documentation

◆ NonRenderingBenchmarkTarget()

NonRenderingBenchmarkTarget::NonRenderingBenchmarkTarget ( Benchmark benchmark)
inline

Definition at line 87 of file RasterBenchmarkTarget.cpp.

RasterBenchmarkTarget(std::unique_ptr< SurfaceManager > surfaceManager, Benchmark *benchmark)

Member Function Documentation

◆ getBackend()

Benchmark::Backend NonRenderingBenchmarkTarget::getBackend ( ) const
inlineoverridevirtual

Reimplemented from RasterBenchmarkTarget.

Definition at line 89 of file RasterBenchmarkTarget.cpp.

◆ getKeyValuePairs()

std::map< std::string, std::string > NonRenderingBenchmarkTarget::getKeyValuePairs ( std::string  cpuName,
std::string  gpuName 
) const
inlineoverridevirtual

Reimplemented from BenchmarkTarget.

Definition at line 95 of file RasterBenchmarkTarget.cpp.

96 {
97 if (cpuName == "") {
98 return std::map<std::string, std::string>();
99 }
100 return {
101 {"cpu_or_gpu", "CPU"},
102 {"cpu_or_gpu_value", cpuName},
103 };
104 }

◆ isCpuOrGpuBound()

SurfaceManager::CpuOrGpu NonRenderingBenchmarkTarget::isCpuOrGpuBound ( ) const
inlineoverridevirtual

Reimplemented from BenchmarkTarget.

Definition at line 91 of file RasterBenchmarkTarget.cpp.


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