Socket
Book a DemoInstallSign in
Socket

mojito-cli-profiler

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mojito-cli-profiler

Provides the `profiler` command for the `mojito-cli` tool.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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.

Keywords

mojito

FAQs

Package last updated on 12 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts