move Histogram.h to stats/
authorAdam Simpkins <simpkins@fb.com>
Sat, 30 Mar 2013 01:55:16 +0000 (18:55 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 21 Apr 2013 20:21:15 +0000 (13:21 -0700)
commitbac6c8f19e2dfb35b56c3d8985736fcdd1b1af1e
treed584695e2ad054eb2eca18f6075f1440e9b51115
parent2624a682280830b932a741c5386b58b4771b4f5e
move Histogram.h to stats/

Summary:
Move Histogram.h into the stats/ subdirectory, along side the
BucketedTimeSeries code.  Eventually I plan to land more of our stats
code in this subdirectory too.

This also renames Histogram-inl.h to Histogram-defs.h, and no longer
includes it by default from Histogram.h.  Instead, this adds a new
stats/Instantiations.cpp file which explicitly instantiates
Histogram<int64_t> and BucketedTimeSeries<int64_t>.  Most callers use
these instantiations, and they now no longer need to include
Histogram-defs.h.  Only callers that need other instantiations need to
include Histogram-defs.h.  This will speed up build times.

Test Plan:
Ran "arc unit" to build all projects depending on folly, and verified
they all still built and passed tests.

Reviewed By: ldbrandy@fb.com

FB internal diff: D761377
folly/stats/Histogram-defs.h [new file with mode: 0644]
folly/stats/Histogram.h [new file with mode: 0644]
folly/stats/Instantiations.cpp [new file with mode: 0644]
folly/test/HistogramBenchmark.cpp
folly/test/HistogramTest.cpp
folly/test/ProducerConsumerQueueBenchmark.cpp