The performance data for PEI phase should be collected from pre-memory, so move PERF_...
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Nov 2006 02:20:22 +0000 (02:20 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Nov 2006 02:20:22 +0000 (02:20 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2015 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Core/Pei/PeiMain/PeiMain.c

index 924336b..f857960 100644 (file)
@@ -178,7 +178,7 @@ Returns:
     //\r
     // Alert any listeners that there is permanent memory available\r
     //\r
     //\r
     // Alert any listeners that there is permanent memory available\r
     //\r
-    PERF_START (NULL,"PEI", NULL, mTick);\r
+    \r
     PERF_START (NULL,"DisMem", NULL, 0);\r
     Status = PeiServicesInstallPpi (&mMemoryDiscoveredPpi);\r
     PERF_END (NULL,"DisMem", NULL, 0);\r
     PERF_START (NULL,"DisMem", NULL, 0);\r
     Status = PeiServicesInstallPpi (&mMemoryDiscoveredPpi);\r
     PERF_END (NULL,"DisMem", NULL, 0);\r
@@ -193,6 +193,7 @@ Returns:
       EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT\r
       );\r
 \r
       EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT\r
       );\r
 \r
+    PERF_START (NULL,"PEI", NULL, mTick);\r
     //\r
     // If first pass, start performance measurement.\r
     //\r
     //\r
     // If first pass, start performance measurement.\r
     //\r