Hyena.Metrics.Metric.TakeSample C# (CSharp) Method

TakeSample() public method

public TakeSample ( ) : void
return void
        public void TakeSample()
        {
            if (sample_func == null) {
                Log.Warning ("sampleFunc is null.  Are you calling TakeSample on a non-event-driven metric?");
                return;
            }

            try {
                store.Add (new Sample (this, sample_func ()));
            } catch (Exception e) {
                Log.Error ("Error taking sample", e);
            }
        }