mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
This commit adds an option to the `CommonEngine` to enable performance profiling. When enabled, timings of a number of steps will be outputted in the server console. Example: ``` ********** Performance results ********** Retrieve SSG Page: 0.3ms Render Page: 25.4ms Inline Critical CSS: 2.3ms ***************************************** ``` To enable profiling set `enablePeformanceProfiler: true` in the `CommonEngine` options. ```ts const commonEngine = new CommonEngine({ enablePeformanceProfiler: true }); ```
10 lines
303 B
TypeScript
10 lines
303 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
export { CommonEngine, CommonEngineRenderOptions, CommonEngineOptions } from './src/common-engine';
|