constructor(name) {
        // Register graceful shutdown handlers
        let context = this;
        let in_shutdown = false;
        [`exit`, `SIGINT`, `SIGUSR1`, `SIGUSR2`, `SIGTERM`].forEach((type) =>
            process.on(type, () => {
                // Mark the server as shutting down
                if (in_shutdown) return;
                in_shutdown = true;

                // Log the performance measurements
                console.log(name, JSON.stringify(context.measurements));

                // Set a timeout to exit the process after 1 second
                setTimeout(() => process.exit(0), 1000);
            })
        );
    }
Name for this performance measurement.
@param {string} name