From cd6a3b157c6e3d189cf2ce7a6b3bd077dad43999 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 14 Aug 2009 05:55:45 +0000 Subject: [PATCH] Add performance logging on EFI boot path git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9071 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/GenericBdsLib/BdsBoot.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c index 9042cc3428..7c47a87333 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c @@ -1,7 +1,7 @@ /** @file BDS Lib functions which relate with create or process the boot option. -Copyright (c) 2004 - 2008, Intel Corporation.
+Copyright (c) 2004 - 2009, Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -55,7 +55,7 @@ BdsLibDoLegacyBoot ( BdsRefreshBbsTableForBoot (Option); // - // Write boot to OS performance data to a file + // Write boot to OS performance data for legacy boot. // PERF_CODE ( WriteBootToOsPerformanceData (); @@ -323,6 +323,13 @@ BdsLibBootViaBootOption ( // gBS->SetWatchdogTimer (5 * 60, 0x0000, 0x00, NULL); + // + // Write boot to OS performance data for UEFI boot + // + PERF_CODE ( + WriteBootToOsPerformanceData (); + ); + Status = gBS->StartImage (ImageHandle, ExitDataSize, ExitData); DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Image Return Status = %r\n", Status));