|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nachos.machine.Stats
public final class Stats
An object that maintains Nachos runtime statistics.
Field Summary | |
---|---|
static int |
ConsoleTime
The amount of simulated time required for the console to handle a character. |
static int |
ElevatorTicks
The amount of simulated time required for an elevator to move a floor. |
static int |
KernelTick
The amount to advance simulated time after each interrupt enable. |
long |
kernelTicks
The total amount of simulated time that Nachos has spent in kernel mode. |
static int |
NetworkTime
The amount of simulated time required for the network to handle a packet. |
int |
numConsoleReads
The total number of characters Nachos has read from the console. |
int |
numConsoleWrites
The total number of characters Nachos has written to the console. |
int |
numDiskReads
The total number of sectors Nachos has read from the simulated disk. |
int |
numDiskWrites
The total number of sectors Nachos has written to the simulated disk. |
int |
numPacketsReceived
The total number of packets Nachos has received from the network. |
int |
numPacketsSent
The total number of packets Nachos has sent to the network. |
int |
numPageFaults
The total number of page faults that have occurred. |
int |
numTLBMisses
The total number of TLB misses that have occurred. |
static int |
RotationTime
The amount of simulated time required to rotate the disk 360 degrees. |
static int |
SeekTime
The amount of simulated time required for the disk to seek. |
static int |
TimerTicks
The mean amount of simulated time between timer interrupts. |
long |
totalTicks
The total amount of simulated time that has passed since Nachos started. |
static int |
UserTick
The amount to advance simulated time after each user instructions is executed. |
long |
userTicks
The total amount of simulated time that Nachos has spent in user mode. |
Constructor Summary | |
---|---|
Stats()
Allocate a new statistics object. |
Method Summary | |
---|---|
void |
print()
Print out the statistics in this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long totalTicks
public long kernelTicks
public long userTicks
public int numDiskReads
public int numDiskWrites
public int numConsoleReads
public int numConsoleWrites
public int numPageFaults
public int numTLBMisses
public int numPacketsSent
public int numPacketsReceived
public static final int UserTick
public static final int KernelTick
public static final int RotationTime
public static final int SeekTime
public static final int ConsoleTime
public static final int NetworkTime
public static final int TimerTicks
public static final int ElevatorTicks
Constructor Detail |
---|
public Stats()
Method Detail |
---|
public void print()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |