]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
MdeModulePkg DxeCore: Check free memory type by CoreUpdateProfile()
authorStar Zeng <star.zeng@intel.com>
Fri, 22 Apr 2016 06:31:10 +0000 (14:31 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 26 Apr 2016 09:31:25 +0000 (17:31 +0800)
commitdea0d6bf2f19989f0583f8ae163571105645c6ca
treecac162d914aedd2e7f502daa80e715bf8aeff93c
parent6523ae8baa91aea55ebcfb0d4ac056eb1962b723
MdeModulePkg DxeCore: Check free memory type by CoreUpdateProfile()

It can improve profile performance, especially when
PcdMemoryProfileMemoryType configured without EfiBootServicesData.
CoreUpdateProfile() can return quickly, but not depend on the further
code to find the buffer not recorded and then return.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Core/Dxe/DxeMain.h
MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
MdeModulePkg/Core/Dxe/Mem/Page.c
MdeModulePkg/Core/Dxe/Mem/Pool.c