\r
mTick = 0;\r
\r
-#ifdef EFI_PEI_PERFORMANCE\r
- if (OldCoreData == NULL) {\r
- mTick = GetPerformanceCounter ();\r
+ if (PerformanceMeasurementEnabled()) {\r
+ if (OldCoreData == NULL) {\r
+ mTick = GetPerformanceCounter ();\r
+ }\r
}\r
-#endif\r
\r
//\r
// For IPF in CAR mode the real memory access is uncached,in InstallPeiMemory()\r
//\r
// Alert any listeners that there is permanent memory available\r
//\r
+ PERF_START (NULL,"PEI", NULL, mTick);\r
PERF_START (NULL,"DisMem", NULL, 0);\r
Status = PeiServicesInstallPpi (&mMemoryDiscoveredPpi);\r
PERF_END (NULL,"DisMem", NULL, 0);\r