Lines Matching refs:buckets

78 		hist->buckets[i].lower = last;  in dosetup()
80 hist->buckets[i].upper = last; in dosetup()
81 hist->buckets[i].count = 0; in dosetup()
92 hist->buckets = (struct th_buck*)calloc(hist->num, in timehist_setup()
94 if(!hist->buckets) { in timehist_setup()
107 free(hist->buckets); in timehist_delete()
115 hist->buckets[i].count = 0; in timehist_clear()
122 if(timeval_smaller(tv, &hist->buckets[i].upper)) { in timehist_insert()
123 hist->buckets[i].count++; in timehist_insert()
128 hist->buckets[hist->num-1].count++; in timehist_insert()
136 if(hist->buckets[i].count != 0) { in timehist_print()
138 (int)hist->buckets[i].lower.tv_sec, in timehist_print()
139 (int)hist->buckets[i].lower.tv_usec, in timehist_print()
140 (int)hist->buckets[i].upper.tv_sec, in timehist_print()
141 (int)hist->buckets[i].upper.tv_usec, in timehist_print()
142 (unsigned)hist->buckets[i].count); in timehist_print()
159 if(hist->buckets[i].count != 0) { in timehist_log()
161 (int)hist->buckets[i].lower.tv_sec, in timehist_log()
162 (int)hist->buckets[i].lower.tv_usec, in timehist_log()
163 (int)hist->buckets[i].upper.tv_sec, in timehist_log()
164 (int)hist->buckets[i].upper.tv_usec, in timehist_log()
165 (unsigned)hist->buckets[i].count); in timehist_log()
177 res += hist->buckets[i].count; in timehist_count()
197 passed+(double)hist->buckets[i].count < lookfor) { in timehist_quartile()
198 passed += (double)hist->buckets[i++].count; in timehist_quartile()
202 low = (double)hist->buckets[i].lower.tv_sec + in timehist_quartile()
203 (double)hist->buckets[i].lower.tv_usec/1000000.; in timehist_quartile()
204 up = (double)hist->buckets[i].upper.tv_sec + in timehist_quartile()
205 (double)hist->buckets[i].upper.tv_usec/1000000.; in timehist_quartile()
207 res = (lookfor - passed)*(up-low)/((double)hist->buckets[i].count); in timehist_quartile()
219 array[i] = (long long)hist->buckets[i].count; in timehist_export()
230 hist->buckets[i].count = (size_t)array[i]; in timehist_import()