"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_env_rewire = require('../env/rewire.js');

//#region src/perf/enabled.ts
/**
* @file Feature-flag check — `isPerfEnabled()` returns true when `DEBUG=perf`
*   is set in the environment. Every recording entry (timer / checkpoint /
*   memory) bails out cheaply when this is false.
*/
/**
* Check if performance tracking is enabled.
*
* Reads `DEBUG` through `getEnvValue` so tests can mock the value via
* `setEnv('DEBUG', 'perf')` from `@socketsecurity/lib/env/rewire` without
* mutating `process.env`.
*/
function isPerfEnabled() {
	return require_env_rewire.getEnvValue("DEBUG")?.includes("perf") || false;
}

//#endregion
exports.isPerfEnabled = isPerfEnabled;