tac0S
Template Affectional Command Operating System
Public Member Functions | Public Attributes | List of all members
Statistics Class Reference

The following class defines the statistics that are to be kept about Nachos behavior – how much time (ticks) elapsed, how many user instructions executed, etc. More...

#include <stats.h>

Public Member Functions

 Statistics ()
 Statistics::Statistics Initialize performance metrics to zero, at system startup.
 
void Print ()
 Statistics::Print Print performance metrics, when we've finished everything at system shutdown.
 

Public Attributes

long long totalTicks
 
long long idleTicks
 
long long systemTicks
 
long long userTicks
 
int numDiskReads
 
int numDiskWrites
 
int numConsoleCharsRead
 
int numConsoleCharsWritten
 
int numPageFaults
 
int numPacketsSent
 
int numPacketsRecvd
 

Detailed Description

The following class defines the statistics that are to be kept about Nachos behavior – how much time (ticks) elapsed, how many user instructions executed, etc.

The fields in this class are public to make it easier to update.


The documentation for this class was generated from the following files: