You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2011/02/01 01:42:13 UTC
[Couchdb Wiki] Update of "Adding_Runtime_Statistics" by JanLehnardt
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Adding_Runtime_Statistics" page has been changed by JanLehnardt.
The comment on this change is: fix api.
http://wiki.apache.org/couchdb/Adding_Runtime_Statistics?action=diff&rev1=3&rev2=4
--------------------------------------------------
An absolute value counter is not really a counter, it collects absolute values for one second. They are good for collecting information like the amount of time spent in an event or the size of some piece of data.
{{{
- couch_stats_collector:record({Module, Key}).
+ couch_stats_collector:record({Module, Key}, Value).
}}}