diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 04:03:59 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 04:03:59 +0000 |
commit | 7cff25d649a16ae039940bc4065f710453e789a2 (patch) | |
tree | 55a20896d8a92c0e3909666dd95b800ff0d3527b /MdeModulePkg/Core/Dxe/Image | |
parent | 008d4018f6d3a17abc1e8bbafc77b7d6d1be2d54 (diff) | |
download | edk2-platforms-7cff25d649a16ae039940bc4065f710453e789a2.tar.xz |
Measure time spent in Driver Binding Supported() calls
Update time measurement of StartImage() calls to properly record the handle of the started Image
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6292 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Image')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Image/Image.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index 0719d4b690..00f6bdced5 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -997,8 +997,12 @@ CoreLoadImage ( )
{
EFI_STATUS Status;
+ UINT64 Tick;
- PERF_START (NULL, "LoadImage", NULL, 0);
+ Tick = 0;
+ PERF_CODE (
+ Tick = GetPerformanceCounter ();
+ );
Status = CoreLoadImageCommon (
BootPolicy,
@@ -1013,7 +1017,8 @@ CoreLoadImage ( EFI_LOAD_PE_IMAGE_ATTRIBUTE_RUNTIME_REGISTRATION | EFI_LOAD_PE_IMAGE_ATTRIBUTE_DEBUG_IMAGE_INFO_TABLE_REGISTRATION
);
- PERF_END (NULL, "LoadImage", NULL, 0);
+ PERF_START (*ImageHandle, LOAD_IMAGE_TOK, NULL, Tick);
+ PERF_END (*ImageHandle, LOAD_IMAGE_TOK, NULL, 0);
return Status;
}
|