Module: caf_profiler/plug_profiler

Performance profiler component.

Measures latency, throughput, and queue length for CA requests.

It should be declared in framework.json with name profiler.

Source:

Extends

Methods

msgBegin() → {Array.<number>}

Starts profiling a message.

Source:
Returns:

Current high-resolution time in [seconds, nanoseconds].

Type
Array.<number>

msgEnd(start) → {Array.<number>}

Ends profiling a message

Parameters:
Name Type Description
start Array.<number>

Starting high-resolution time.

Source:
Returns:

Elapsed high-resolution time in [seconds, nanoseconds].

Type
Array.<number>

report() → {Object}

Generates a performance report.

Source:
Returns:

A summary object with performance metrics. See metrics package.

Type
Object