aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/metrics/counter.cpp
blob: 21bdeb0e7e04fbccf8f265ab723408e271ac92ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "counter.h"
#include "metrics_manager.h"

namespace vespalib {
namespace metrics {


void
Counter::add(size_t count, Point point) const
{
    if (_manager) {
        _manager->add(Increment(std::make_pair(_id, point), count));
    }
}

} // namespace vespalib::metrics
} // namespace vespalib