diff options
author | Star Zeng <star.zeng@intel.com> | 2017-08-07 15:28:21 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2017-08-14 16:55:44 +0800 |
commit | ce10f482f786283b160146bb7ba2d9770479c10c (patch) | |
tree | 345c3eb8decd5646b226ba7db3deff9cbe397656 /PerformancePkg | |
parent | 9a701955a55d094e93c3613a3ae462660551d592 (diff) | |
download | edk2-ce10f482f786283b160146bb7ba2d9770479c10c.tar.gz edk2-ce10f482f786283b160146bb7ba2d9770479c10c.tar.bz2 edk2-ce10f482f786283b160146bb7ba2d9770479c10c.zip |
PerformancePkg DP: Init CustomCumulativeData.MinDur
Init CustomCumulativeData.MinDur to PERF_MAXDUR, otherwise the
MinDur displayed for custom cumulative data will be always 0,
but not the real shortest duration.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Cinnamon Shia <cinnamon.shia@hpe.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'PerformancePkg')
-rw-r--r-- | PerformancePkg/Dp_App/Dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PerformancePkg/Dp_App/Dp.c b/PerformancePkg/Dp_App/Dp.c index 4cdc39edb4..484ef2d50b 100644 --- a/PerformancePkg/Dp_App/Dp.c +++ b/PerformancePkg/Dp_App/Dp.c @@ -382,7 +382,7 @@ InitializeDp ( if (CustomCumulativeToken != NULL) {
CustomCumulativeData = AllocateZeroPool (sizeof (PERF_CUM_DATA));
ASSERT (CustomCumulativeData != NULL);
- CustomCumulativeData->MinDur = 0;
+ CustomCumulativeData->MinDur = PERF_MAXDUR;
CustomCumulativeData->MaxDur = 0;
CustomCumulativeData->Count = 0;
CustomCumulativeData->Duration = 0;
|