2 * Copyright 2017 Facebook, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * This file contains explicit instantiations of stats template types.
20 * This allows most users to avoid having to include the template definition
24 #include <folly/stats/Histogram.h>
25 #include <folly/stats/Histogram-defs.h>
29 template class Histogram<int64_t>;
30 template class detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>;
32 // Histogram::getPercentileBucketIdx(), Histogram::getPercentileEstimate()
33 // and Histogram::computeTotalCount()
34 // are implemented using template methods. Instantiate the default versions of
35 // these methods too, so anyone using them won't also need to explicitly
36 // include Histogram-defs.h
37 template size_t detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>::
38 getPercentileBucketIdx<Histogram<int64_t>::CountFromBucket>(
40 Histogram<int64_t>::CountFromBucket countFromBucket,
42 double* highPct) const;
43 template int64_t detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>::
44 getPercentileEstimate<
45 Histogram<int64_t>::CountFromBucket,
46 Histogram<int64_t>::AvgFromBucket>(
48 Histogram<int64_t>::CountFromBucket countFromBucket,
49 Histogram<int64_t>::AvgFromBucket avgFromBucket) const;
51 detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>::
52 computeTotalCount<Histogram<int64_t>::CountFromBucket>(
53 Histogram<int64_t>::CountFromBucket countFromBucket) const;