MdeModulePkg: Use new added Perf macros

Replace old Perf macros with the new added ones.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Bi, Dandan
2018-06-22 16:56:21 +08:00
committed by Liming Gao
parent f45dd2dd4f
commit 67e9ab84ef
11 changed files with 53 additions and 76 deletions

View File

@@ -725,8 +725,8 @@ BdsEntry (
//
// Insert the performance probe
//
PERF_END (NULL, "DXE", NULL, 0);
PERF_START (NULL, "BDS", NULL, 0);
PERF_CROSSMODULE_END("DXE");
PERF_CROSSMODULE_BEGIN("BDS");
DEBUG ((EFI_D_INFO, "[Bds] Entry...\n"));
//
@@ -888,9 +888,9 @@ BdsEntry (
// > Signal ReadyToLock event
// > Authentication action: 1. connect Auth devices; 2. Identify auto logon user.
//
PERF_START (NULL, "PlatformBootManagerBeforeConsole", "BDS", 0);
PERF_INMODULE_BEGIN("PlatformBootManagerBeforeConsole");
PlatformBootManagerBeforeConsole ();
PERF_END (NULL, "PlatformBootManagerBeforeConsole", "BDS", 0);
PERF_INMODULE_END("PlatformBootManagerBeforeConsole");
//
// Initialize hotkey service
@@ -907,7 +907,7 @@ BdsEntry (
//
// Connect consoles
//
PERF_START (NULL, "EfiBootManagerConnectAllDefaultConsoles", "BDS", 0);
PERF_INMODULE_BEGIN("EfiBootManagerConnectAllDefaultConsoles");
if (PcdGetBool (PcdConInConnectOnDemand)) {
EfiBootManagerConnectConsoleVariable (ConOut);
EfiBootManagerConnectConsoleVariable (ErrOut);
@@ -917,7 +917,7 @@ BdsEntry (
} else {
EfiBootManagerConnectAllDefaultConsoles ();
}
PERF_END (NULL, "EfiBootManagerConnectAllDefaultConsoles", "BDS", 0);
PERF_INMODULE_END("EfiBootManagerConnectAllDefaultConsoles");
//
// Do the platform specific action after the console is ready
@@ -930,9 +930,9 @@ BdsEntry (
// > Dispatch aditional option roms
// > Special boot: e.g.: USB boot, enter UI
//
PERF_START (NULL, "PlatformBootManagerAfterConsole", "BDS", 0);
PERF_INMODULE_BEGIN("PlatformBootManagerAfterConsole");
PlatformBootManagerAfterConsole ();
PERF_END (NULL, "PlatformBootManagerAfterConsole", "BDS", 0);
PERF_INMODULE_END("PlatformBootManagerAfterConsole");
//
// Boot to Boot Manager Menu when EFI_OS_INDICATIONS_BOOT_TO_FW_UI is set. Skip HotkeyBoot
//
@@ -1025,10 +1025,9 @@ BdsEntry (
//
// Execute Key####
//
PERF_START (NULL, "BdsWait", "BDS", 0);
PERF_INMODULE_BEGIN ("BdsWait");
BdsWait (HotkeyTriggered);
PERF_END (NULL, "BdsWait", "BDS", 0);
PERF_INMODULE_END ("BdsWait");
//
// BdsReadKeys() can be removed after all keyboard drivers invoke callback in timer callback.
//