Home | History | Annotate | Download | only in src

Lines Matching refs:Counter

1256 int32_t* Counter::Bind(const char* name, bool is_histogram) {
1266 void Counter::AddSample(int32_t sample) {
1275 max_name_size_ = Counter::kMaxNameSize;
1280 Counter* CounterCollection::GetNextCounter() {
1313 Counter* Shell::GetCounter(const char* name, bool is_histogram) {
1314 Counter* counter = counter_map_->Lookup(name);
1316 if (counter == NULL) {
1317 counter = counters_->GetNextCounter();
1318 if (counter != NULL) {
1319 counter_map_->Set(name, counter);
1320 counter->Bind(name, is_histogram);
1323 DCHECK(counter->is_histogram() == is_histogram);
1325 return counter;
1330 Counter* counter = GetCounter(name, false);
1332 if (counter != NULL) {
1333 return counter->ptr();
1349 Counter* counter = reinterpret_cast<Counter*>(histogram);
1350 counter->AddSample(sample);
1573 Counter* counter;
1606 counters[j].counter = i.CurrentValue();
1617 Counter* counter = counters[j].counter;
1619 if (counter->is_histogram()) {
1620 printf("| c:%-60s | %11i |\n", key, counter->count());
1621 printf("| t:%-60s | %11i |\n", key, counter->sample_total());
1623 printf("| %-62s | %11i |\n", key, counter->count());