diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-15 02:14:25 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-15 02:14:25 +0000 |
commit | 5460c4bbc5aa9d99d25c55c6b936166bea3dbea0 (patch) | |
tree | 6e6339b3f33d6023ed04c4b8046e3f1765e359d3 /PerformancePkg | |
parent | ff51746bd46b25a88eb6c131c52e1d9fd610af28 (diff) | |
download | edk2-5460c4bbc5aa9d99d25c55c6b936166bea3dbea0.zip edk2-5460c4bbc5aa9d99d25c55c6b936166bea3dbea0.tar.gz edk2-5460c4bbc5aa9d99d25c55c6b936166bea3dbea0.tar.bz2 |
Fix build error.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11054 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'PerformancePkg')
-rw-r--r-- | PerformancePkg/Dp_App/DpTrace.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/PerformancePkg/Dp_App/DpTrace.c b/PerformancePkg/Dp_App/DpTrace.c index 5038473..bdaa1d9 100644 --- a/PerformancePkg/Dp_App/DpTrace.c +++ b/PerformancePkg/Dp_App/DpTrace.c @@ -703,7 +703,10 @@ ProcessCumulative( VOID
)
{
- UINT64 Avgval; // the computed average duration
+ UINT64 AvgDur; // the computed average duration
+ UINT64 Dur;
+ UINT64 MinDur;
+ UINT64 MaxDur;
EFI_STRING StringPtr;
UINTN TIndex;
EFI_STRING StringPtrUnknown;
@@ -720,14 +723,19 @@ ProcessCumulative( PrintToken (STRING_TOKEN (STR_DP_DASHES));
for ( TIndex = 0; TIndex < NumCum; ++TIndex) {
- Avgval = DivU64x32 (CumData[TIndex].Duration, CumData[TIndex].Count);
+ AvgDur = DivU64x32 (CumData[TIndex].Duration, CumData[TIndex].Count);
+ AvgDur = DurationInMicroSeconds(AvgDur);
+ Dur = DurationInMicroSeconds(CumData[TIndex].Duration);
+ MaxDur = DurationInMicroSeconds(CumData[TIndex].MaxDur);
+ MinDur = DurationInMicroSeconds(CumData[TIndex].MinDur);
+
PrintToken (STRING_TOKEN (STR_DP_CUMULATIVE_STATS),
CumData[TIndex].Name,
CumData[TIndex].Count,
- DurationInMicroSeconds(CumData[TIndex].Duration),
- DurationInMicroSeconds(Avgval),
- DurationInMicroSeconds(CumData[TIndex].MinDur),
- DurationInMicroSeconds(CumData[TIndex].MaxDur)
+ Dur,
+ AvgDur,
+ MinDur,
+ MaxDur
);
}
}
|