UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

14 lines (13 loc) 481 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const perf_hooks_1 = require("perf_hooks"); let initialized = false; if (process.env.NX_PERF_LOGGING === 'true' && !initialized) { initialized = true; const obs = new perf_hooks_1.PerformanceObserver((list) => { for (const entry of list.getEntries()) { console.log(`Time for '${entry.name}'`, entry.duration); } }); obs.observe({ entryTypes: ['measure'] }); }