Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.53 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.53 KB

perftrace

Record PerformanceEntry objects from Node.js and the Web in the Trace Event Format, so that it can be visualized on https://ui.perfetto.dev like this!

The code for this example is available here.

The code for this example is available here.

Check out the blog !

Install

To install via NPM, run:

npm i perftrace

Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using ES Modules, you can import the library with:

<script type="module">
  import { TraceEvents } from "https://cdn.jsdelivr.net/npm/perftrace/index.mjs";
</script>

Usage

Check out the API documentation and the code examples.

License

This project is available under the MIT license. See LICENSE for the full license text.