]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.c
Enhance HiiGetBrowserData API to support the case that storage element is 0.
[mirror_edk2.git] / MdeModulePkg / Library / DxePerformanceLib / DxePerformanceLib.c
index ac2ce4e12d96610b3b822a3a4c2fa2fbd7d26642..ffd09a035b6c3f9221d3951d4e4ecd61be07dc5b 100644 (file)
@@ -1,35 +1,36 @@
-/*++\r
+/** @file\r
+  Performance Library\r
+\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, Intel Corporation\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
 http://opensource.org/licenses/bsd-license.php\r
 \r
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-\r
-Module Name:\r
-\r
-  DxePerformanceLib.c\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Abstract:\r
-\r
-  Performance Library\r
-\r
---*/\r
+**/\r
 \r
 \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
@@ -41,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
@@ -173,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