r-performance-monitor
v1.0.0
Published
A performance monitoring tool for web applications, focusing on long task detection and performance entries monitoring.
Downloads
3
Readme
Performance Monitor
A performance monitoring tool for web applications, focusing on long task detection and performance entries monitoring.
Installation
Install the package via npm:
npm install performance-monitor
Usage
import and initialize the performance monitoring tool in your project. You can specify a custom interval (in milliseconds) for logging the performance data.
- Install the package:
npm install performance-monitor
- Update your main.ts file:
import { createApp } from 'vue';
import App from './App.vue';
import { startPerformanceMonitoring } from 'performance-monitor';
// Start performance monitoring with a custom interval (e.g., every 5 seconds)
startPerformanceMonitoring(5000);
createApp(App).mount('#app');