]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/DynamicCommand/DpDynamicCommand/DpInternal.h
ShellPkg/UefiDpLib: Support dumping cumulative data
authorCinnamon Shia <cinnamon.shia@hpe.com>
Thu, 5 Nov 2015 01:59:24 +0000 (01:59 +0000)
committershenshushi <shenshushi@Edk2>
Thu, 5 Nov 2015 01:59:24 +0000 (01:59 +0000)
commita06795c6a628aa07e2274e2e3e083a5e1cc99322
tree2c23388a2405e1c899c2bb588f3078940621616b
parent303ec9bc9f3329e2ec20ef480e071777cc5b8514
ShellPkg/UefiDpLib: Support dumping cumulative data

Add a new option -c to dump cumulative data.
For example:
shell> dp -c
==[ Cumulative ]========
(Times in microsec.)     Cumulative   Average     Shortest    Longest
   Name          Count    Duration    Duration    Duration    Duration
LoadImage:         200     1000000        7000           0      100000
StartImage:        200    20000000       90000           0     7000000
  DB:Start:        200    20000000      100000           0     9000000
DB:Support:     200000      100000           0           0        7000

shell> dp -c DXE
==[ Cumulative ]========
(Times in microsec.)     Cumulative   Average     Shortest    Longest
   Name          Count    Duration    Duration    Duration    Duration
LoadImage:         200     1000000        7000           0      100000
StartImage:        200    20000000       90000           0     7000000
  DB:Start:        200    20000000      100000           0     9000000
DB:Support:     200000      100000           0           0        7000
        DXE          1    30000000    30000000           0    30000000

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: El-Haj-Mahmoud Samer <samer.el-haj-mahmoud@hpe.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18728 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiDpLib/Dp.c
ShellPkg/Library/UefiDpLib/DpInternal.h
ShellPkg/Library/UefiDpLib/DpTrace.c
ShellPkg/Library/UefiDpLib/UefiDpLib.uni