# @openreplay/tracker-profiler

> Tracker plugin for profiling JS function calls

Latest version **3.0.1** (published 2022-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @openreplay/tracker-profiler
pnpm add @openreplay/tracker-profiler
yarn add @openreplay/tracker-profiler
bun add @openreplay/tracker-profiler
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2022-09-13 |
| First published | 2021-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex Tsokurov |
| Maintainers | deliriumvt, shekarsiri, estradino, pandacodes |
| Keywords | debugging, logging, replay |

## Links

- npm: https://www.npmjs.com/package/@openreplay/tracker-profiler
- npm.io page: https://npm.io/package/@openreplay/tracker-profiler

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2022-09-13
- 3.0.0 — 2021-04-30

## README

# OpenReplay Tracker profiler plugin

The profiler plugin allows you to measure function performance and
capture the arguments and result for each function call.

## Installation

```bash
npm i @openreplay/tracker-profiler
```

## Usage

Initialize the `@openreplay/tracker` package as usual and load the plugin into it.
Then decorate any function inside your code with the generated function.

```js
import Tracker from '@openreplay/tracker';
import trackerProfiler from '@openreplay/tracker-profiler';

const tracker = new Tracker({
  projectKey: YOUR_PROJECT_KEY,
});
tracker.start();

export const profiler = tracker.plugin(trackerProfiler());

const fn = profiler('call_name')(() => {
  // ...
}, thisArg); // thisArg is optional
```

---
_Source: https://npm.io/package/@openreplay/tracker-profiler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
