CPU Profiler for Monti APM
Add this package by running
meteor add montiapm:profiler
This package is a fork of kadira-profiler
Remote CPU
- On Monti APM, select your app, and go to the
Tools
tab - Create a new profile. Enter in a name and select a duration
- Open your app, and run the code Monti APM gave you in the browser's console.
Your profile will now appear on Monti APM where you can analyze it.
Local CPU
- Run your app with the following environment variable.
KADIRA_PROFILE_LOCALLY=1
- Open your app in the browser and open the browser console
- In the console run
Monti.profileCpu(10)
- It will profile your app for 10 seconds and save the profile to a temporary location. Check your app's logs for the location.
- In Chrome open
chrome://inspect
, and selectOpen dedicated DevTools for Node
- Click the
Profile
tab,Load
, and then open the file in the temporary location from step 4.
You can now analyze your cpu profile using Chrome's dev tools.
For more infomation visit here.