@stephen-shopopop/node-metrics
    Preparing search index...

    Plugin that captures and records Node.js process memory usage statistics.

    This plugin retrieves memory usage metrics such as heap_used_bytes, heap_total_bytes, and rss_bytes from the Node.js process and sets them in the provided context.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string = MemoryUsagePlugin.name

    Methods

    • Captures the current Node.js process memory usage statistics and sets them in the provided MetricsContext.

      Parameters

      • ctx: MetricsContext

        The MetricsContext instance where memory usage metrics will be recorded.

        Metrics captured:

        • heap_used_bytes: The amount of memory used by the V8 heap.
        • heap_total_bytes: The total size of the V8 heap.
        • rss_bytes: Resident Set Size, the total memory allocated for the process.
        • array_buffers_bytes: Memory allocated for ArrayBuffers and SharedArrayBuffers.
        • external_bytes: Memory used by C++ objects bound to JavaScript objects managed by V8.

      Returns void