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

@ -352,18 +352,17 @@ PeiCore (
// Update performance measurements
//
if (OldCoreData == NULL) {
PERF_START (NULL, "SEC", NULL, 1);
PERF_END (NULL, "SEC", NULL, 0);
PERF_EVENT ("SEC"); // Means the end of SEC phase.
//
// If first pass, start performance measurement.
//
PERF_START (NULL,"PEI", NULL, 0);
PERF_START (NULL,"PreMem", NULL, 0);
PERF_CROSSMODULE_BEGIN ("PEI");
PERF_INMODULE_BEGIN ("PreMem");
} else {
PERF_END (NULL,"PreMem", NULL, 0);
PERF_START (NULL,"PostMem", NULL, 0);
PERF_INMODULE_END ("PreMem");
PERF_INMODULE_BEGIN ("PostMem");
}
//
@ -411,7 +410,7 @@ PeiCore (
//
// Alert any listeners that there is permanent memory available
//
PERF_START (NULL,"DisMem", NULL, 0);
PERF_INMODULE_BEGIN ("DisMem");
Status = PeiServicesInstallPpi (&mMemoryDiscoveredPpi);
//
@ -419,7 +418,7 @@ PeiCore (
//
ProcessNotifyList (&PrivateData);
PERF_END (NULL,"DisMem", NULL, 0);
PERF_INMODULE_END ("DisMem");
}
//
@ -437,7 +436,7 @@ PeiCore (
//
// Measure PEI Core execution time.
//
PERF_END (NULL, "PostMem", NULL, 0);
PERF_INMODULE_END ("PostMem");
//
// Lookup DXE IPL PPI