Flutter Engine
The Flutter Engine
Classes | Functions
RasterBenchmarkTarget.cpp File Reference
#include "bench/Benchmark.h"
#include "tools/flags/CommandLineFlags.h"
#include "tools/testrunners/benchmark/target/BenchmarkTarget.h"
#include "tools/testrunners/common/TestRunner.h"

Go to the source code of this file.

Classes

class  RasterBenchmarkTarget
 
class  NonRenderingBenchmarkTarget
 

Functions

static DEFINE_int (maxCalibrationAttempts, 3, "Try up to this many times to guess loops for a benchmark, or skip the " "benchmark.")
 
static DEFINE_double (overheadGoal, 0.0001, "Loop until timer overhead is at most this fraction of our measurements.")
 
static DEFINE_int (overheadLoops, 100000, "Loops to estimate timer overhead.")
 
SkString humanize (double ms)
 

Function Documentation

◆ DEFINE_double()

static DEFINE_double ( overheadGoal  ,
0.  0001,
"Loop until timer overhead is at most this fraction of our measurements."   
)
static

◆ DEFINE_int() [1/2]

static DEFINE_int ( maxCalibrationAttempts  ,
,
"Try up to this many times to guess loops for a  benchmark,
or skip the " "benchmark."   
)
static

◆ DEFINE_int() [2/2]

static DEFINE_int ( overheadLoops  ,
100000  ,
"Loops to estimate timer overhead."   
)
static

◆ humanize()

SkString humanize ( double  ms)

Definition at line 446 of file BazelBenchmarkTestRunner.cpp.

446 {
447 if (FLAGS_verbose) return SkStringPrintf("%" PRIu64, (uint64_t)(ms * 1e6));
448 return HumanizeMs(ms);
449}
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
SkString HumanizeMs(double ms)
Definition: Timer.cpp:9