summaryrefslogtreecommitdiff
path: root/automation/source/server/prof_usl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'automation/source/server/prof_usl.cxx')
-rw-r--r--automation/source/server/prof_usl.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/automation/source/server/prof_usl.cxx b/automation/source/server/prof_usl.cxx
index a20e81606d7b..21086c48b0b9 100644
--- a/automation/source/server/prof_usl.cxx
+++ b/automation/source/server/prof_usl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ struct SysdepStaticData
void TTProfiler::InitSysdepProfiler()
{
- if ( !pSysDepStatic ) // Sollte immer so sein!!
+ if ( !pSysDepStatic ) // Sollte immer so sein!!
pSysDepStatic = new SysdepStaticData;
// Hier initialisieren
@@ -59,7 +59,7 @@ void TTProfiler::InitSysdepProfiler()
void TTProfiler::DeinitSysdepProfiler()
{
- if ( pSysDepStatic ) // Sollte immer so sein!!
+ if ( pSysDepStatic ) // Sollte immer so sein!!
{
// Hier aufräumen und eventuell Speicher freigeben
@@ -88,19 +88,19 @@ String TTProfiler::GetSysdepProfileHeader()
// Zustand merken
void TTProfiler::GetSysdepProfileSnapshot( SysdepProfileSnapshot *pSysdepProfileSnapshot, USHORT )
{
- SvFileStream aStream( String::CreateFromAscii("/proc/self/psinfo"), STREAM_READ ); // Das ist ein expliziter Pfad für UNXSOL!
+ SvFileStream aStream( String::CreateFromAscii("/proc/self/psinfo"), STREAM_READ ); // Das ist ein expliziter Pfad für UNXSOL!
if ( aStream.IsOpen() )
{
aStream.Read( &(pSysdepProfileSnapshot->mpsinfo), sizeof( psinfo ) );
aStream.Close();
}
- SvFileStream anotherStream( String::CreateFromAscii("/proc/self/status"), STREAM_READ ); // Das ist ein expliziter Pfad für UNXSOL!
+ SvFileStream anotherStream( String::CreateFromAscii("/proc/self/status"), STREAM_READ ); // Das ist ein expliziter Pfad für UNXSOL!
if ( anotherStream.IsOpen() )
{
anotherStream.Read( &(pSysdepProfileSnapshot->mpstatus), sizeof( pstatus ) );
anotherStream.Close();
}
- SvFileStream YetAnotherStream( String::CreateFromAscii("/proc/self/usage"), STREAM_READ ); // Das ist ein expliziter Pfad für UNXSOL!
+ SvFileStream YetAnotherStream( String::CreateFromAscii("/proc/self/usage"), STREAM_READ ); // Das ist ein expliziter Pfad für UNXSOL!
if ( YetAnotherStream.IsOpen() )
{
YetAnotherStream.Read( &(pSysdepProfileSnapshot->mprusage), sizeof( prusage ) );
@@ -122,10 +122,10 @@ String TTProfiler::GetSysdepProfileLine( SysdepProfileSnapshot *pStart, SysdepPr
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( String::CreateFromInt64(d_utime), 7 );
aProfile += Pad( String::CreateFromInt64(d_stime), 7 );
aProfile += Pad( String::CreateFromInt64(d_utime + d_stime), 7 );