1.0.13 • Published 5 years ago
the-metrics v1.0.13
the-metrics
Performance measures for the-framework
Installation
$ npm install the-metrics --save
Usage
'use strict'
const { TheMetrics } = require('the-metrics')
async function tryExample () {
class Person {
hi () {console.log('hi!')}
}
const theMetrics = new TheMetrics({
})
theMetrics.bindMethodCallCounter('person.hi', {
class: Person,
method: 'hi',
})
const person = new Person()
person.hi()
person.hi()
console.log(theMetrics.data)
}
tryExample().catch((err) => console.error(err))
API Guide
License
This software is released under the MIT License.