summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/DxePerformanceLib
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-15 15:56:02 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-15 15:56:02 +0000
commit857dfc455d7999f61c9b55f0a930c6b4087804b9 (patch)
tree4a0efd95ee6b1df71558d3bda1b4e0c04c780f1d /MdeModulePkg/Library/DxePerformanceLib
parente05e2b73fc9e7b6662e0f8681b3e3ac2194662c7 (diff)
downloadedk2-platforms-857dfc455d7999f61c9b55f0a930c6b4087804b9.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Library/DxePerformanceLib')
-rw-r--r--MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c12
-rw-r--r--MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf10
2 files changed, 16 insertions, 6 deletions
diff --git a/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c b/MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c
index 35a50f726b..8da302769a 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. <BR>
+ 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. <BR>
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 <Library/UefiBootServicesTableLib.h>
#include <Library/PcdLib.h>
+//
+// 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 ff1f03b3c9..70c19db97a 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. <BR>
# All rights reserved. This program and the accompanying materials
@@ -45,7 +47,7 @@
[Protocols]
- gPerformanceProtocolGuid # PROTOCOL ALWAYS_CONSUMED
+ gPerformanceProtocolGuid
[Pcd.common]