This package has been deprecated

Author message:

move to @the-/metrics ( https://github.com/the-labo/the/tree/master/packages/metrics#readme )

the-metrics

1.0.13 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i the-metrics

Weekly Downloads

0

Version

1.0.13

License

MIT

Unpacked Size

81.3 kB

Total Files

51

Last publish

Collaborators

  • okunishinishi