faastjs > FaastModule > stats
FaastModule.stats() method
Statistics for a specific function or the entire faast.js module.
Signature:
stats(functionName?: string): FunctionStats;
Parameters
Parameter |
Type |
Description |
---|---|---|
functionName |
string |
(Optional) The name of the function to retrieve statistics for. If the function does not exist or has not been invoked, a new instance of FunctionStats is returned with zero values. If |
an snapshot of FunctionStats at a point in time.