ProfileDecoratorOptions interface

Options accepted by the profile() decorator.

Every field is optional; omitted fields fall back to the IMQ_LOG_TIME, IMQ_LOG_ARGS and IMQ_LOG_LEVEL environment defaults.

Signature:

export interface ProfileDecoratorOptions 

Remarks

enableDebugTime and enableDebugArgs override the environment defaults only when passed as real booleans — any other value is ignored and the environment default applies.

Properties

Property

Modifiers

Type

Description

enableDebugArgs?

boolean

(Optional) Turns on/off arguments debugging, overriding IMQ_LOG_ARGS.

enableDebugTime?

boolean

(Optional) Turns on/off execution time debugging, overriding IMQ_LOG_TIME.

logLevel?

LogLevel

(Optional) Logger method used for the profiling output — one of log, info, warn or error. Overrides IMQ_LOG_LEVEL, which itself defaults to info.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.