1.0.13 • Published 6 years ago

the-metrics v1.0.13

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

the-metrics

Build Status npm Version JS Standard

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.

Links

1.0.13

6 years ago

1.0.12

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago