Skip to content

Instantly share code, notes, and snippets.

@afarnham
Created May 19, 2009 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afarnham/113924 to your computer and use it in GitHub Desktop.
Save afarnham/113924 to your computer and use it in GitHub Desktop.
class CounterMetric(Metric):
def values(self):
if self.virtual:
return True
if 'call' in self.options:
self._record(self.options['call'])
return self._snapshot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment