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);
}
}