/* * Copyright 2013-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * This file contains explicit instantiations of stats template types. * * This allows most users to avoid having to include the template definition * header files. */ #include #include #if !FOLLY_MSVC_USE_WORKAROUND_FOR_C5037 namespace folly { template class Histogram; template class detail::HistogramBuckets::Bucket>; // Histogram::getPercentileBucketIdx(), Histogram::getPercentileEstimate() // and Histogram::computeTotalCount() // are implemented using template methods. Instantiate the default versions of // these methods too, so anyone using them won't also need to explicitly // include Histogram-defs.h template size_t detail::HistogramBuckets::Bucket>:: getPercentileBucketIdx::CountFromBucket>( double pct, Histogram::CountFromBucket countFromBucket, double* lowPct, double* highPct) const; template int64_t detail::HistogramBuckets::Bucket>:: getPercentileEstimate< Histogram::CountFromBucket, Histogram::AvgFromBucket>( double pct, Histogram::CountFromBucket countFromBucket, Histogram::AvgFromBucket avgFromBucket) const; template uint64_t detail::HistogramBuckets::Bucket>:: computeTotalCount::CountFromBucket>( Histogram::CountFromBucket countFromBucket) const; } // namespace folly #endif