public class PerformanceStackData extends java.lang.Object implements Resetable
When startOperation is called in PerformanceMonitor, an object of this type is retrieved from the pool, populated, and added to the mThreadStackHash table in the PerformanceMonitor. When endOperation is called, it is popped off the stack and its start time is used to determine stats for the specified operation.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
PerformanceStackData()
Constructs a PerformanceStackData object with the given operation.
|
PerformanceStackData(java.lang.String pOperation,
java.lang.String pParameter)
Constructs a PerformanceStackData object with the given operation.
|
Modifier and Type | Method and Description |
---|---|
void |
assertMatchesExpected(java.lang.String pOpName,
java.lang.String pParameter) |
void |
decreaseFreeMemory(double pDecreaseMemory)
Increases the free memory by the given value
|
double |
getFreeMemory()
Returns property freeMemory
|
java.lang.String |
getOperation()
Returns property operation
|
java.lang.String |
getParameter()
Returns property parameter
|
long |
getStartTime()
Returns property startTime
|
void |
increaseStartTime(long pIncreaseTime)
Increases start time by the given value
|
void |
markFreeMemory()
Gets the freeMemory size
|
void |
markStartTime()
Sets the start time of this operation.
|
void |
reset()
Resets the properties of this object back to their defaults
|
void |
setOperation(java.lang.String pOperation)
Sets property operation
|
void |
setParameter(java.lang.String pParameter)
Sets property parameter
|
public PerformanceStackData()
public PerformanceStackData(java.lang.String pOperation, java.lang.String pParameter)
public void markStartTime()
public void markFreeMemory()
public void increaseStartTime(long pIncreaseTime)
public void decreaseFreeMemory(double pDecreaseMemory)
public void reset()
public void setOperation(java.lang.String pOperation)
public java.lang.String getOperation()
public void setParameter(java.lang.String pParameter)
public java.lang.String getParameter()
public long getStartTime()
public double getFreeMemory()
public void assertMatchesExpected(java.lang.String pOpName, java.lang.String pParameter) throws PerfStackMismatchException
PerfStackMismatchException