/*
* Copyright 2001 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
/*
* Rusage -- CPU, etc usage measuring
*
* Rusage is a OS specific object that measures CPU time from its
* creation, for use in reporting on server speed.
*
* Classes:
* Rusage - CPU timer
*
* Public methods:
* Rusage::Start() - restart the timer
* Rusage::Message() - format an OS-specific resource usage message
* Rusage::Time() - return CPU time in ms
*/
class StrBuf;
struct UsageContext;
struct RusageTrack {
int trackable;
long utime;
long stime;
long io_in;
long io_out;
long net_in;
long net_out;
long maxrss;
long page_faults;
} ;
class Rusage {
public:
Rusage();
~Rusage();
void Start();
void Message( StrBuf &msg );
void GetTrack( int level, RusageTrack *track );
int Time();
private:
UsageContext *tc; // OS specific
} ;
# |
Change |
User |
Description |
Committed |
|
#1
|
15902 |
matt_attaway |
A second renaming that I will not obliterate as a badge of shame |
|
|
//guest/perforce_software/p4/2014_1/sys/rusage.h |
#1
|
15901 |
matt_attaway |
Clean up code to fit modern Workshop naming standards |
|
|
//guest/perforce_software/p4/2014.1/sys/rusage.h |
#1
|
12188 |
matt_attaway |
Move 'main' p4 into a release specific directory in prep for new releases |
|
|
//guest/perforce_software/p4/sys/rusage.h |
#1
|
9129 |
matt_attaway |
Initial commit of the 2014.1 p4/p4api source code |
|
|