Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const Inspector = require('inspector-api')
  2. const inspector = new Inspector({
  3. storage: {
  4. type: 's3',
  5. bucket: 'testBucket',
  6. dir: 'inspector'
  7. }
  8. })
  9.  
  10. await inspector.profiler.enable()
  11. await inspector.profiler.start()
  12. // Invoke business logic under measurement here...
  13.  
  14. // some time later...
  15. await inspector.profiler.stop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement