]> git.proxmox.com Git - mirror_edk2.git/commit
PerformancePkg/Dp_App: Support dumping cumulative data
authorCinnamon Shia <cinnamon.shia@hpe.com>
Tue, 10 Nov 2015 04:57:14 +0000 (04:57 +0000)
committerlzeng14 <lzeng14@Edk2>
Tue, 10 Nov 2015 04:57:14 +0000 (04:57 +0000)
commitd28f77df0f51f84b0af79f09abe2c27b1f1aaa69
treea6db5eaa02240cb24f89430e1909b9d7530b75c8
parent62cae3513b5844c93d41d1ae9a4ae1c6f268cd37
PerformancePkg/Dp_App: 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: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18762 6f19259b-4bc3-4df7-8a09-765794883524
PerformancePkg/Dp_App/Dp.c
PerformancePkg/Dp_App/DpInternal.h
PerformancePkg/Dp_App/DpStrings.uni
PerformancePkg/Dp_App/DpTrace.c