Searched refs:running_avg (Results 1 – 2 of 2) sorted by relevance
/system/extras/memtrack/ |
D | memtrack.h | 116 static inline void computeAvg(double *running_avg, size_t cur_avg, in computeAvg() argument 118 *running_avg = (*running_avg/(num_samples+1))*num_samples in computeAvg()
|
/system/extras/micro_bench/ |
D | micro_bench.cpp | 139 static inline double computeRunningAvg(double avg, double running_avg, size_t cur_idx) { in computeRunningAvg() argument 140 return (running_avg / (cur_idx + 1)) * cur_idx + (avg / (cur_idx + 1)); in computeRunningAvg() 147 static inline double computeStdDev(double square_avg, double running_avg) { in computeStdDev() argument 148 return sqrt(square_avg - running_avg * running_avg); in computeStdDev() 156 …64_t /*time_ns*/, const char *name, size_t size, size_t copies, double running_avg, double std_dev… in printSummary() argument 158 name, copies, size, running_avg/1024.0, std_dev/1024.0, min/1024.0, in printSummary() 192 double running_avg, double square_avg, double min, double max) { in printColdSummary() argument 194 name, copies, num_buffers, size, running_avg/1024.0, in printColdSummary() 195 computeStdDev(running_avg, square_avg)/1024.0, min/1024.0, max/1024.0); in printColdSummary() 203 double min = 0.0, max = 0.0, running_avg = 0.0, square_avg = 0.0; \ [all …]
|