From 857dfc455d7999f61c9b55f0a930c6b4087804b9 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 15 Dec 2008 15:56:02 +0000 Subject: Code scrub performance library instances in MdeModulePkg git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7037 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c | 12 ++++++++++-- MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf | 10 ++++++---- 2 files changed, 16 insertions(+), 6 deletions(-) (limited to 'MdeModulePkg/Library/DxePerformanceLib') diff --git a/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c b/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c index 35a50f7..8da3027 100644 --- a/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c +++ b/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c @@ -1,7 +1,12 @@ /** @file Performance Library -Copyright (c) 2006 - 2008, Intel Corporation.
+ This library instance provides infrastructure for DXE phase drivers to log performance + data. It consumes Performance Protocol published by DxeCorePerformanceLib + to log performance data. If Performance Protocol is not available, it does not log any + performance information. + + Copyright (c) 2006 - 2008, 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 @@ -22,6 +27,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include +// +// The cached performance protocol interface. +// PERFORMANCE_PROTOCOL *mPerformance = NULL; /** @@ -165,7 +173,7 @@ EndPerformanceMeasurement ( @param LogEntryKey On entry, the key of the performance measurement log entry to retrieve. 0, then the first performance measurement log entry is retrieved. - On exit, the key of the next performance lof entry entry. + On exit, the key of the next performance log entry. @param Handle Pointer to environment specific context used to identify the component being measured. @param Token Pointer to a Null-terminated ASCII string that identifies the component diff --git a/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf b/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf index ff1f03b..70c19db 100644 --- a/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf +++ b/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf @@ -1,8 +1,10 @@ #/** @file +# Performance library instance used in DXE phase. # -# Component description file for Dxe Performance Library -# -# This library provides intrastructure for Dxe driver to log performance. +# This library instance provides infrastructure for DXE phase drivers to log performance +# data. It consumes Performance Protocol published by DxeCorePerformanceLib +# to log performance data. If Performance Protocol is not available, it does not log any +# performance information. # # Copyright (c) 2006 - 2008, Intel Corporation.
# All rights reserved. This program and the accompanying materials @@ -45,7 +47,7 @@ [Protocols] - gPerformanceProtocolGuid # PROTOCOL ALWAYS_CONSUMED + gPerformanceProtocolGuid [Pcd.common] -- cgit v1.1