mojito-cli-profiler
Provides the `profiler` command for the `mojito-cli` tool.
Last updated 7 years ago by isao .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mojito-cli-profiler 
SYNC missed versions from official npm registry.

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

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.

Current Tags

  • 0.0.1                                ...           latest (7 years ago)

1 Versions

  • 0.0.1                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |