Skip to content

Latest commit

 

History

History
100 lines (58 loc) · 2.13 KB

README.md

File metadata and controls

100 lines (58 loc) · 2.13 KB

parikshan

parikshan

Table of contents

Namespaces

Classes

Interfaces

Variables

Functions

Variables

parikshan

parikshan: Object

Call signature

▸ (fn, loc?): (...args: any[]) => any

Wraps input function with performance measurement. If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported once the finally handler is invoked

Parameters
Name Type Description
fn AnyFunction input function
loc? SourceLocation location of function in original source code
Returns

fn

function wrapped with performance hooks

▸ (...args): any

Parameters
Name Type
...args any[]
Returns

any

Type declaration

Name Type
usesThisOrNative (fn: AnyFunction) => boolean

Defined in

parikshan.ts:23

Functions

initMongoPerfSubscriber

Const initMongoPerfSubscriber(dbDetails): Promise<void>

Connects to db and and saves performance measurements in time series collection, if collection doesn't exist then a new time series collection with given name will be created

Parameters

Name Type Description
dbDetails MongoDbDetails mongo db and collection details

Returns

Promise<void>

Defined in

mongoPerfSubscriber.ts:23