This package has been deprecated

Author message:

NO LONGER MAINTAINED

@the-/metrics

15.5.4 • Public • Published

@the-/metrics

npm Version

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

See API Guide for more detail

License

This software is released under the MIT License.

Links

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @the-/metrics

      Weekly Downloads

      0

      Version

      15.5.4

      License

      MIT

      Unpacked Size

      106 kB

      Total Files

      42

      Last publish

      Collaborators

      • okunishinishi