-/*++\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
@retval Other Performance protocol is not located to log performance.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
GetPerformanceProtocol (\r
VOID\r
\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