Flutter Engine
The Flutter Engine
|
#include <BenchmarkTarget.h>
Public Member Functions | |
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 |
SkCanvas * | getCanvas () const |
Benchmark * | getBenchmark () const |
virtual std::map< std::string, std::string > | getKeyValuePairs (std::string cpuName, std::string gpuName) const |
virtual SurfaceManager::CpuOrGpu | isCpuOrGpuBound () const |
Static Public Member Functions | |
static std::unique_ptr< BenchmarkTarget > | FromConfig (std::string surfaceConfig, Benchmark *benchmark) |
static void | printGlobalStats () |
Protected Member Functions | |
BenchmarkTarget (std::unique_ptr< SurfaceManager > surfaceManager, Benchmark *benchmark) | |
virtual SkCanvas * | onBeforeDraw (SkCanvas *canvas) const |
virtual void | onAfterDraw () const |
double | nowMs () const |
Protected Attributes | |
std::unique_ptr< SurfaceManager > | fSurfaceManager |
Benchmark * | fBenchmark |
Definition at line 21 of file BenchmarkTarget.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 76 of file BenchmarkTarget.h.
|
pure virtual |
Implemented in GaneshBenchmarkTarget, and RasterBenchmarkTarget.
|
inlinevirtual |
|
static |
Definition at line 173 of file GaneshBenchmarkTarget.cpp.
|
pure virtual |
Implemented in GaneshBenchmarkTarget, RasterBenchmarkTarget, and NonRenderingBenchmarkTarget.
Benchmark * BenchmarkTarget::getBenchmark | ( | ) | const |
Definition at line 43 of file BenchmarkTarget.cpp.
SkCanvas * BenchmarkTarget::getCanvas | ( | ) | const |
Definition at line 36 of file BenchmarkTarget.cpp.
|
virtual |
Reimplemented in NonRenderingBenchmarkTarget.
Definition at line 45 of file BenchmarkTarget.cpp.
|
virtual |
Reimplemented in NonRenderingBenchmarkTarget.
Definition at line 51 of file BenchmarkTarget.cpp.
|
protected |
Definition at line 56 of file BenchmarkTarget.cpp.
|
inlineprotectedvirtual |
Definition at line 81 of file BenchmarkTarget.h.
|
static |
Definition at line 53 of file GaneshBenchmarkTarget.cpp.
|
inlinevirtual |
|
virtual |
void BenchmarkTarget::tearDown | ( | ) | const |
Definition at line 34 of file BenchmarkTarget.cpp.
double BenchmarkTarget::time | ( | int | loops | ) | const |
Definition at line 17 of file BenchmarkTarget.cpp.
|
inlinevirtual |
|
protected |
Definition at line 89 of file BenchmarkTarget.h.
|
protected |
Definition at line 88 of file BenchmarkTarget.h.