perftrace
perftrace copied to clipboard
Visualize Performance issues in your JavaScript Applications
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.