18 #ifndef ION_ANALYTICS_GPUPERFORMANCE_H_
19 #define ION_ANALYTICS_GPUPERFORMANCE_H_
28 #include "base/integral_types.h"
30 #include "ion/external/gtest/gunit_prod.h"
102 kMinimumViewport = 0x08,
111 double reciprocal_mean,
double reciprocal_deviation,
112 double minimum_value,
double maximum_value)
114 deviation(standard_deviation),
115 inverse_mean(reciprocal_mean),
116 inverse_deviation(reciprocal_deviation),
117 minimum(minimum_value), maximum(maximum_value) {}
190 void SetEnables(Enables enables);
194 return (enables_ & enables) == enables;
198 virtual const Benchmark RunAllMeasurements(
205 virtual void AccumulateMeasurements(
217 number_of_trials_ = number_of_trials;
223 virtual Measurement MeasurePerformance(
229 virtual Measurement MeasureBaseline(
237 virtual Measurement MeasureMinViewportSpeed(
247 virtual Measurement MeasureStateChanges(
255 virtual Measurement MeasureResourceCreation(
296 FRIEND_TEST(GPUPerformanceTest, InstanceCopy);
303 static_cast<int>(left) | static_cast<int>(right));
310 static_cast<int>(enables) & ~static_cast<int>(kResource));
312 "GpuPerformanceTester: kResource and kGpuMemory are incompatible" <<
313 std::endl <<
"Disabling kResource" << std::endl;
321 #endif // ION_PRODUCTION
323 #endif // ION_ANALYTICS_GPUPERFORMANCE_H_
#define LOG(severity)
Logs the streamed message unconditionally with a severity of severity.
GpuPerformanceTester::Enables operator|(GpuPerformanceTester::Enables left, GpuPerformanceTester::Enables right)
The Benchmark class provides types and utilities to make it easier to create performance benchmarks...
A SharedPtr is a smart shared pointer to an instance of some class that implements reference counting...
This struct represents accumulated values for a variable.