RingoJS

Module middleware/profiler

This module provides profiling middleware to measure the application's runtime behaviour.

Profiler data is written to the module's logger. You have to run the application in interpreted mode (passing -o -1 on the command line) to get meaningful results.

Functions


middleware (next, app)

A middleware factory that runs the nested app with a runtime profiler.

Parameters

Function next

the wrapped middleware chain

Object app

the Stick Application object

Returns

Function

a JSGI middleware function