performance-audit

1.0.0 • Public • Published

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

  1. cd demo
  2. Run node instrument-demo.js
  3. Open demo.html in a web browser
  4. After 2s, look in the console

Readme

Keywords

none

Package Sidebar

Install

npm i performance-audit

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • alexseville