1.0.3 • Published 5 years ago

marky-decorator v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

marky-decorator NPM Build Status

A method-decorator for marky to easily measure a method's performance.

Usage

npm install --save marky-decorator
class MyClass {
  // the measurement reference name will equal the method name
  @measure()
  public myMethod() {
    // do some tasks
  }

  @measure('custom_measurement_identifier')
  public anotherMethod() {
    // ...
  }
}

const myInstance = new MyClass();
// this will call marky.mark() before and marky.stop() after the method
myInstance.myMethod();

Reference: https://github.com/nolanlawson/marky

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago