Add pair of performance macro function to measure the whole PEI phase's performance.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1704 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2006-10-10 07:30:40 +00:00
parent e57b8d71a4
commit 217f1d11c3
2 changed files with 6 additions and 5 deletions

View File

@ -423,7 +423,7 @@ Returns:
// Call constructor for all libraries
//
ProcessLibraryConstructorList (gDxeCoreImageHandle, gST);
PERF_END (0,PEI_TOK, NULL, 0) ;
PERF_START (0,DXE_TOK, NULL, 0) ;
//

View File

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