diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-15 15:56:02 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-15 15:56:02 +0000 |
commit | 857dfc455d7999f61c9b55f0a930c6b4087804b9 (patch) | |
tree | 4a0efd95ee6b1df71558d3bda1b4e0c04c780f1d /MdeModulePkg/Library/PeiPerformanceLib | |
parent | e05e2b73fc9e7b6662e0f8681b3e3ac2194662c7 (diff) | |
download | edk2-857dfc455d7999f61c9b55f0a930c6b4087804b9.tar.gz edk2-857dfc455d7999f61c9b55f0a930c6b4087804b9.tar.bz2 edk2-857dfc455d7999f61c9b55f0a930c6b4087804b9.zip |
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/PeiPerformanceLib')
-rw-r--r-- | MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c | 7 | ||||
-rw-r--r-- | MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf | 9 |
2 files changed, 11 insertions, 5 deletions
diff --git a/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c b/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c index 64b488369a..97dfd0d817 100644 --- a/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c +++ b/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c @@ -1,5 +1,10 @@ /** @file
- Performance Library
+ Performance library instance used in PEI phase.
+
+ This file implements all APIs in Performance Library class in MdePkg. It creates
+ performance logging GUIDed HOB on the first performance logging and then logs the
+ performance data to the GUIDed HOB. Due to the limitation of temporary RAM, the maximum
+ number of performance logging entry is specified by PcdMaxPeiPerformanceLogEntries.
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
diff --git a/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf b/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf index d3f611c225..8913239ca7 100644 --- a/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf +++ b/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf @@ -1,9 +1,10 @@ #/** @file
#
-# Memory-only library functions with no library constructor/destructor
+# Performance library instance used in PEI phase.
#
-# This module provides the performance measurement interfaces in PEI phase, it is
-# one instance of Performance Libarary.
+# This library provides the performance measurement interfaces in PEI phase, it creates
+# and consumes GUIDed HOB for performance logging. The GUIDed HOB is passed to DXE phase
+# so that it can be taken over by DxeCorePerformanceLib.
#
# Copyright (c) 2006 - 2008, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials
@@ -49,7 +50,7 @@ [Guids]
- gPeiPerformanceHobGuid # SOMETIMES_CONSUMED
+ gPeiPerformanceHobGuid
[Pcd.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries
|