Thrown when metric output methods were called and performance was not enabled.
const perfApi = new PerformanceApi({enabled: false, packageUUID: "bogus"}); // Calling these methods will cause this error to be thrown. perfApi.getMetrics(); perfApi.getNodeTiming(); perfApi.getSysInfo();
Generated using TypeDoc
Thrown when metric output methods were called and performance was not enabled.
Example
const perfApi = new PerformanceApi({enabled: false, packageUUID: "bogus"}); // Calling these methods will cause this error to be thrown. perfApi.getMetrics(); perfApi.getNodeTiming(); perfApi.getSysInfo();