INTEGRATION: CWS sb13 (1.1.84); FILE MERGED

2004/02/06 08:20:18 sb 1.1.84.1: #i19699# Adapted to tightened tools/string.hxx.
This commit is contained in:
Kurt Zenker 2004-02-26 12:43:11 +00:00
parent 93504c725e
commit 24c61eda38

View file

@ -2,9 +2,9 @@
*
* $RCSfile: prof_usl.cxx,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change: $Author: mh $ $Date: 2002-11-18 15:27:59 $
* last change: $Author: kz $ $Date: 2004-02-26 13:43:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -146,19 +146,19 @@ String TTProfiler::GetSysdepProfileLine( SysdepProfileSnapshot *pStart, SysdepPr
{
String aProfile;
aProfile += Pad( pStop->mpsinfo.pr_size, 9);
aProfile += Pad( pStop->mpsinfo.pr_rssize, 11);
aProfile += Pad( String::CreateFromInt64(pStop->mpsinfo.pr_size), 9);
aProfile += Pad( String::CreateFromInt64(pStop->mpsinfo.pr_rssize), 11);
aProfile += Pad( DIFF_MS( pStart, pStop, mprusage.pr_rtime ) / AVER( pStart, pStop, mprusage.pr_count ), 7 );
aProfile += Pad( String::CreateFromInt64(DIFF_MS( pStart, pStop, mprusage.pr_rtime ) / AVER( pStart, pStop, mprusage.pr_count )), 7 );
ULONG d_utime = DIFF_MS( pStart, pStop, mpstatus.pr_utime ) + DIFF_MS( pStart, pStop, mpstatus.pr_cutime );
ULONG d_stime = DIFF_MS( pStart, pStop, mpstatus.pr_stime ) + DIFF_MS( pStart, pStop, mpstatus.pr_cstime );
aProfile += Pad( d_utime, 7 );
aProfile += Pad( d_stime, 7 );
aProfile += Pad( d_utime + d_stime, 7 );
aProfile += Pad( String::CreateFromInt64(d_utime), 7 );
aProfile += Pad( String::CreateFromInt64(d_stime), 7 );
aProfile += Pad( String::CreateFromInt64(d_utime + d_stime), 7 );
return aProfile;
};