A class that has the statistics interface but does nothing. Swapping this in in place of the Statistics class (say with a typedef) eliminates the function calls.
| 119 | // in place of the Statistics class (say with a typedef) eliminates the function |
| 120 | // calls. |
| 121 | class DummyStatsCollector { |
| 122 | public: |
| 123 | explicit DummyStatsCollector(size_t /*handle*/) {} |
| 124 | explicit DummyStatsCollector(std::string const& /*tag*/) {} |
| 125 | void AddSample(double /*sample*/) const {} |
| 126 | void IncrementOne() const {} |
| 127 | size_t GetHandle() const { return 0u; } |
| 128 | }; |
| 129 | |
| 130 | class StatsCollectorImpl { |
| 131 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected