1.0.13 • Published 5 years ago

the-metrics v1.0.13

Weekly downloads
4
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.7

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago