Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

[archiving soon] Provides the `profiler` command for the `mojito-cli` tool. Installed separately.

License

Notifications You must be signed in to change notification settings

YahooArchive/mojito-cli-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mojito-cli-profiler

This package provides the profiler command for the mojito-cli tool. To install:

npm install -g mojito-cli
npm install -g mojito-cli-profiler

Note: the environment variable $NODE_PATH must include the npm library path, i.e. the path displayed with npm root -g.

Set Up

Your app's application.json file should have a perf config object, like:

"perf": {
    "timeline": true,
    "mark": true
},

You can also specify the output pathname in this config object like "logFile": "/tmp/perf.log",

Start your mojito application like

mojito start --perf <logfilename>

Make server requests, then hit ctrl-C.

Usage

After the preparation described above, there should be file created by the name provided above. To generate the perfomrance graph, you can now do:

mojito profiler --input <logfilename>

Licensing and Contributions

This software is free to use under the Yahoo! Inc. BSD license. See LICENSE.txt.

About

[archiving soon] Provides the `profiler` command for the `mojito-cli` tool. Installed separately.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •