]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c
HII Library Class interface refine.
[mirror_edk2.git] / MdeModulePkg / Library / DxePerformanceLib / DxePerformanceLib.c
index 84241515372222bed9e79f2e6306e15f71cba715..ffd09a035b6c3f9221d3951d4e4ecd61be07dc5b 100644 (file)
@@ -1,7 +1,12 @@
 /** @file\r
   Performance Library\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+  This library instance provides infrastructure for DXE phase drivers to log performance\r
+  data. It consumes Performance Protocol published by DxeCorePerformanceLib\r
+  to log performance data. If Performance Protocol is not available, it does not log any\r
+  performance information.\r
+\r
+  Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -15,14 +20,17 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <PiDxe.h>\r
 \r
-#include <Protocol/Performance.h>\r
+#include <Guid/Performance.h>\r
 \r
 #include <Library/PerformanceLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/PcdLib.h>\r
 \r
-STATIC PERFORMANCE_PROTOCOL    *mPerformance = NULL;\r
+//\r
+// The cached performance protocol interface.\r
+//\r
+PERFORMANCE_PROTOCOL    *mPerformance = NULL;\r
 \r
 /**\r
   The constructor function caches the pointer to Performance protocol.\r
@@ -34,7 +42,6 @@ STATIC PERFORMANCE_PROTOCOL    *mPerformance = NULL;
   @retval Other           Performance protocol is not located to log performance.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 GetPerformanceProtocol (\r
   VOID\r
@@ -166,7 +173,7 @@ EndPerformanceMeasurement (
 \r
   @param  LogEntryKey             On entry, the key of the performance measurement log entry to retrieve.\r
                                   0, then the first performance measurement log entry is retrieved.\r
-                                  On exit, the key of the next performance lof entry entry.\r
+                                  On exit, the key of the next performance log entry.\r
   @param  Handle                  Pointer to environment specific context used to identify the component\r
                                   being measured.\r
   @param  Token                   Pointer to a Null-terminated ASCII string that identifies the component\r