github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/rcrowley/go-metrics/metrics.go (about)

     1  // Go port of Coda Hale's Metrics library
     2  //
     3  // <https://yougam/libraries/rcrowley/go-metrics>
     4  //
     5  // Coda Hale's original work: <https://yougam/libraries/codahale/metrics>
     6  package metrics
     7  
     8  // UseNilMetrics is checked by the constructor functions for all of the
     9  // standard metrics.  If it is true, the metric returned is a stub.
    10  //
    11  // This global kill-switch helps quantify the observer effect and makes
    12  // for less cluttered pprof profiles.
    13  var UseNilMetrics bool = false