performance-audit
v1.0.0
Published
Log Client JS execution to audit performance
Readme
performance-audit
Instrument and track JS execution.
Step 1
Run the instrumentation on client side code.
instrument = require('performance-audit');
var src = fs.readFileSync('testfile.js', 'utf8');
var output = instrument(src);Step 2
Reference the client script, performance-audit.js in the DOM
<script src="./performance-audit.js"></script>Step 3
Run your code
Step 4
At any point print the log to the console to see a JS execution log.
window.performanceAudit.show();Run the demo
- cd
demo - Run
node instrument-demo.js - Open demo.html in a web browser
- After 2s, look in the console
