Skip to content

Commit ee0991b

Browse files
cexbrayatalan-agius4
authored andcommitted
fix(@angular/ssr): enable performance profiler option name
(cherry picked from commit de1ec9d)
1 parent 98c46a0 commit ee0991b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

goldens/public-api/angular/ssr/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class CommonEngine {
1717
// @public (undocumented)
1818
export interface CommonEngineOptions {
1919
bootstrap?: Type<{}> | (() => Promise<ApplicationRef>);
20-
enablePeformanceProfiler?: boolean;
20+
enablePerformanceProfiler?: boolean;
2121
providers?: StaticProvider[];
2222
}
2323

packages/angular/ssr/src/common-engine.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface CommonEngineOptions {
2626
/** A set of platform level providers for all requests. */
2727
providers?: StaticProvider[];
2828
/** Enable request performance profiling data collection and printing the results in the server console. */
29-
enablePeformanceProfiler?: boolean;
29+
enablePerformanceProfiler?: boolean;
3030
}
3131

3232
export interface CommonEngineRenderOptions {
@@ -69,9 +69,9 @@ export class CommonEngine {
6969
* render options
7070
*/
7171
async render(opts: CommonEngineRenderOptions): Promise<string> {
72-
const enablePeformanceProfiler = this.options?.enablePeformanceProfiler;
72+
const enablePerformanceProfiler = this.options?.enablePerformanceProfiler;
7373

74-
const runMethod = enablePeformanceProfiler
74+
const runMethod = enablePerformanceProfiler
7575
? runMethodAndMeasurePerf
7676
: noopRunMethodAndMeasurePerf;
7777

@@ -95,7 +95,7 @@ export class CommonEngine {
9595
}
9696
}
9797

98-
if (enablePeformanceProfiler) {
98+
if (enablePerformanceProfiler) {
9999
printPerformanceLogs();
100100
}
101101

0 commit comments

Comments
 (0)