File tree Expand file tree Collapse file tree
packages/utils/src/lib/profiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * Environment variable name for enabling/disabling profiling globally.
3+ * When set to 'true', profiling is enabled. When set to 'false' or unset, profiling is disabled.
4+ *
5+ * @example
6+ * ```bash
7+ * CP_PROFILING=true npm run dev
8+ * ```
9+ */
110export const PROFILER_ENABLED_ENV_VAR = 'CP_PROFILING' ;
11+
12+ /**
13+ * Environment variable name for enabling debug mode for profiler state transitions.
14+ * When set to 'true', profiler state transitions create performance marks for debugging.
15+ *
16+ * @example
17+ * ```bash
18+ * CP_PROFILER_DEBUG=true npm run dev
19+ * ```
20+ */
221export const PROFILER_DEBUG_ENV_VAR = 'CP_PROFILER_DEBUG' ;
3- export const PROFILER_COORDINATOR_FLAG_ENV_VAR = 'CP_PROFILER_COORDINATOR' ;
4- export const PROFILER_ORIGIN_PID_ENV_VAR = 'CP_PROFILER_ORIGIN_PID' ;
5- export const PROFILER_DIRECTORY_ENV_VAR = 'CP_PROFILER_DIR' ;
6- export const PROFILER_BASE_NAME = 'trace' ;
7- export const PROFILER_DIRECTORY = './tmp/profiles' ;
You can’t perform that action at this time.
0 commit comments