|
PerfExplorer 2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectAbstractResult
public abstract class AbstractResult
This class is used as an abstract implementation of the PerformanceResult interface. This class has all the member data fields for the plethora of anticipated subclasses.
CVS $Id: AbstractResult.java,v 1.20 2010/01/11 17:25:35 khuck Exp $
| Field Summary | |
|---|---|
static int |
CALLS
|
static int |
EXCLUSIVE
|
static int |
INCLUSIVE
|
static int |
SUBROUTINES
|
static int |
USEREVENT_MAX
|
static int |
USEREVENT_MEAN
|
static int |
USEREVENT_MIN
|
static int |
USEREVENT_NUMEVENTS
|
static int |
USEREVENT_SUMSQR
|
| Constructor Summary | |
|---|---|
AbstractResult(PerformanceResult input)
copy constructor |
|
AbstractResult(PerformanceResult input,
boolean fullCopy)
sort-of copy constructor |
|
| Method Summary | |
|---|---|
double |
getCalls(Integer thread,
String event)
This method will return the number of times that the specified event was called on the specified thread of execution. |
double |
getDataPoint(Integer thread,
String event,
String metric,
int type)
This method will return the value stored in the trial for the specified thread, event, metric, type combination. |
DataSource |
getDataSource()
This method returns the DataSource to which the performance data is related. |
Map<Integer,String> |
getEventMap()
Get a Map of events in this result. |
Set<String> |
getEvents()
This method will return a Set of Strings, which represent the names of the events in the trial. |
double |
getExclusive(Integer thread,
String event,
String metric)
This method will return the exclusive value stored in the trial for the selected thread, event, metric combination. |
String |
getFPMetric()
This method returns the metric name which represents floating point operations. |
double |
getInclusive(Integer thread,
String event,
String metric)
This method will return the inclusive value stored in the trial for the selected thread, event, metric combination. |
String |
getL1AccessMetric()
This method returns the metric name which represents L1 cache accesses. |
String |
getL1MissMetric()
This method returns the metric name which represents the L1 cache misses. |
String |
getL2AccessMetric()
This method returns the metric name which represents L2 cache accesses. |
String |
getL2MissMetric()
This method returns the metric name which represents the L2 cache misses. |
String |
getL3AccessMetric()
This method returns the metric name which represents L3 cache accesses. |
String |
getL3MissMetric()
This method returns the metric name which represents the L3 cache misses. |
String |
getMainEvent()
This method will return the name of the event which has the highest inclusive time value in the trial. |
double |
getMainInclusive()
|
Set<String> |
getMetrics()
This method will return a Set of Strings, which represent the names of the metrics in the trial. |
String |
getName()
Get the name for this input. |
Integer |
getOriginalThreads()
This method will return the number of threads in the trial from which this data was derived. |
Map<String,Double> |
getSortedByValue(String metric,
int type,
boolean ascending)
This method will return a Map of values, sorted by the values. |
double |
getSubroutines(Integer thread,
String event)
This method will return the number of subroutines that the specified event had on the specified thread of execution. |
Set<Integer> |
getThreads()
This method will return a Set of Integers, which represent the identifiers of the threads of execution in the trial. |
String |
getTimeMetric()
This method will return the metric which represents the time metric in the trial. |
String |
getTLBMissMetric()
This method returns the metric name which represents the TLB misses. |
String |
getTotalInstructionMetric()
This method returns the metric name which represents the total number of instructions. |
Trial |
getTrial()
This method returns the Trial to which the performance data is related. |
Integer |
getTrialID()
This method returns the ID of the Trial to which the performance data is related. |
static List<Integer> |
getTypes()
|
static List<Integer> |
getTypes(boolean includeUserEventTypes)
|
double |
getUsereventMax(Integer thread,
String event)
This method will return the maximum value for the specified user event which was observed on the specified thread of execution. |
double |
getUsereventMean(Integer thread,
String event)
This method will return the mean value for the specified user event which was observed on the specified thread of execution. |
double |
getUsereventMin(Integer thread,
String event)
This method will return the minimum value for the specified user event which was observed on the specified thread of execution. |
double |
getUsereventNumevents(Integer thread,
String event)
This method will return the number of times that a specified user event happened on the specified thread of execution. |
Set<String> |
getUserEvents()
This method will return a Set of Strings, which represent the names of the userevents in the trial. |
Set<String> |
getUserEvents(Integer thread)
This method will return a Set of Strings, which represent the names of the userevents for the specified thread in the trial. |
double |
getUsereventSumsqr(Integer thread,
String event)
This method will return the sum of squared values for the specified user event which was observed on the specified thread of execution. |
void |
putCalls(Integer thread,
String event,
double value)
This method will save the specified value as the number of calls for the specified event on the specified thread of execution. |
void |
putDataPoint(Integer thread,
String event,
String metric,
int type,
double value)
This method will store the specified value in the trial for the specified thread, event, metric, type combination. |
void |
putExclusive(Integer thread,
String event,
String metric,
double value)
This method will save the specified value as the exclusive value for the specified thread, event, metric combination. |
void |
putInclusive(Integer thread,
String event,
String metric,
double value)
This method will save the specified value as the inclusive value for the specified thread, event, metric combination. |
void |
putSubroutines(Integer thread,
String event,
double value)
This method will save the specified value as the number of subroutines for the specified event on the specified thread of execution. |
void |
putUsereventMax(Integer thread,
String event,
double value)
This method will save the maximum value for a specified user event which was observed on the specified thread of execution. |
void |
putUsereventMean(Integer thread,
String event,
double value)
This method will save the mean value for a specified user event which was observed on the specified thread of execution. |
void |
putUsereventMin(Integer thread,
String event,
double value)
This method will save the minimum value for a specified user event which was observed on the specified thread of execution. |
void |
putUsereventNumevents(Integer thread,
String event,
double value)
This method will save the number of times that a specified user event happened on the specified thread of execution. |
void |
putUsereventSumsqr(Integer thread,
String event,
double value)
This method will save the sum of squared values for the specified user event which was observed on the specified thread of execution. |
void |
setEventMap(Map<Integer,String> eventMap)
Set the Map of events in this result. |
void |
setIgnoreWarnings(boolean ignore)
When values are requested from the trial, ignore warnings if the values are null |
void |
setMainInclusive(double mainInclusive)
|
void |
setName(String name)
Set the name for this input. |
void |
setOriginalThreads(Integer originalThreads)
|
void |
setTrial(Trial trial)
|
void |
setTrialID(Integer trialID)
|
String |
toString()
This method will return a string representation of this PerformanceResult. |
static String |
typeToString(int type)
|
void |
updateEventMap()
update the event map - remove what's missing, essentially |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CALLS
public static final int EXCLUSIVE
public static final int INCLUSIVE
public static final int SUBROUTINES
public static final int USEREVENT_MAX
public static final int USEREVENT_MEAN
public static final int USEREVENT_MIN
public static final int USEREVENT_NUMEVENTS
public static final int USEREVENT_SUMSQR
| Constructor Detail |
|---|
public AbstractResult(PerformanceResult input)
public AbstractResult(PerformanceResult input,
boolean fullCopy)
| Method Detail |
|---|
public double getCalls(Integer thread,
String event)
PerformanceResult
getCalls in interface PerformanceResultthread - The thread of interestevent - The event of interest
public double getDataPoint(Integer thread,
String event,
String metric,
int type)
PerformanceResult
getDataPoint in interface PerformanceResultthread - The thread of interestevent - The event of interestmetric - The metric of interesttype - The type of data to return
PerformanceResult.getExclusive(java.lang.Integer, java.lang.String, java.lang.String),
PerformanceResult.getInclusive(java.lang.Integer, java.lang.String, java.lang.String),
PerformanceResult.getCalls(java.lang.Integer, java.lang.String),
PerformanceResult.getSubroutines(java.lang.Integer, java.lang.String),
INCLUSIVE,
EXCLUSIVE,
CALLS,
SUBROUTINES,
USEREVENT_NUMEVENTS,
USEREVENT_MAX,
USEREVENT_MIN,
USEREVENT_MEAN,
USEREVENT_SUMSQRpublic DataSource getDataSource()
PerformanceResult
getDataSource in interface PerformanceResultpublic Map<Integer,String> getEventMap()
PerformanceResult
getEventMap in interface PerformanceResultMappublic Set<String> getEvents()
PerformanceResult
getEvents in interface PerformanceResult
public double getExclusive(Integer thread,
String event,
String metric)
PerformanceResult
getExclusive in interface PerformanceResultthread - The thread of interestevent - The event of interestmetric - The metric of interest
public String getFPMetric()
PerformanceResult
getFPMetric in interface PerformanceResult
public double getInclusive(Integer thread,
String event,
String metric)
PerformanceResult
getInclusive in interface PerformanceResultthread - The thread of interestevent - The event of interestmetric - The metric of interest
public String getL1AccessMetric()
PerformanceResult
getL1AccessMetric in interface PerformanceResultpublic String getL1MissMetric()
PerformanceResult
getL1MissMetric in interface PerformanceResultpublic String getL2AccessMetric()
PerformanceResult
getL2AccessMetric in interface PerformanceResultpublic String getL2MissMetric()
PerformanceResult
getL2MissMetric in interface PerformanceResultpublic String getL3AccessMetric()
PerformanceResult
getL3AccessMetric in interface PerformanceResultpublic String getL3MissMetric()
PerformanceResult
getL3MissMetric in interface PerformanceResultpublic String getMainEvent()
PerformanceResult
getMainEvent in interface PerformanceResultpublic double getMainInclusive()
public Set<String> getMetrics()
PerformanceResult
getMetrics in interface PerformanceResultpublic String getName()
PerformanceResult
getName in interface PerformanceResultpublic Integer getOriginalThreads()
PerformanceResult
getOriginalThreads in interface PerformanceResult
public Map<String,Double> getSortedByValue(String metric,
int type,
boolean ascending)
PerformanceResult
getSortedByValue in interface PerformanceResultmetric - The metric of interesttype - The type of dataascending - Either ascending (true) or descending (false) order
INCLUSIVE,
EXCLUSIVE,
CALLS,
SUBROUTINES,
USEREVENT_NUMEVENTS,
USEREVENT_MAX,
USEREVENT_MIN,
USEREVENT_MEAN,
USEREVENT_SUMSQR
public double getSubroutines(Integer thread,
String event)
PerformanceResult
getSubroutines in interface PerformanceResultthread - The thread of interestevent - The event of interest
public Set<Integer> getThreads()
PerformanceResult
getThreads in interface PerformanceResultpublic String getTimeMetric()
PerformanceResult
getTimeMetric in interface PerformanceResultpublic String getTLBMissMetric()
PerformanceResult
getTLBMissMetric in interface PerformanceResultpublic String getTotalInstructionMetric()
PerformanceResult
getTotalInstructionMetric in interface PerformanceResultpublic Trial getTrial()
PerformanceResult
getTrial in interface PerformanceResultpublic Integer getTrialID()
PerformanceResult
getTrialID in interface PerformanceResultpublic static List<Integer> getTypes()
public static List<Integer> getTypes(boolean includeUserEventTypes)
public double getUsereventMax(Integer thread,
String event)
PerformanceResult
getUsereventMax in interface PerformanceResultthread - The thread of interestevent - The event of interest
public double getUsereventMean(Integer thread,
String event)
PerformanceResult
getUsereventMean in interface PerformanceResultthread - The thread of interestevent - The event of interest
public double getUsereventMin(Integer thread,
String event)
PerformanceResult
getUsereventMin in interface PerformanceResultthread - The thread of interestevent - The event of interest
public double getUsereventNumevents(Integer thread,
String event)
PerformanceResult
getUsereventNumevents in interface PerformanceResultthread - The thread of interestevent - The event of interest
public Set<String> getUserEvents()
PerformanceResult
getUserEvents in interface PerformanceResultpublic Set<String> getUserEvents(Integer thread)
PerformanceResult
getUserEvents in interface PerformanceResult
public double getUsereventSumsqr(Integer thread,
String event)
PerformanceResult
getUsereventSumsqr in interface PerformanceResultthread - The thread of interestevent - The event of interest
public void putCalls(Integer thread,
String event,
double value)
PerformanceResult
putCalls in interface PerformanceResultthread - The thread of interestevent - The event of interestvalue - The value measured on that thread, event combination
public void putDataPoint(Integer thread,
String event,
String metric,
int type,
double value)
PerformanceResult
putDataPoint in interface PerformanceResultthread - The thread of interestevent - The event of interestmetric - The metric of interesttype - The type of data to returnvalue - The value The value of that type measured on that thread,
event, metric combinationPerformanceResult.putExclusive(java.lang.Integer, java.lang.String, java.lang.String, double),
PerformanceResult.putInclusive(java.lang.Integer, java.lang.String, java.lang.String, double),
PerformanceResult.putCalls(java.lang.Integer, java.lang.String, double),
PerformanceResult.putSubroutines(java.lang.Integer, java.lang.String, double),
INCLUSIVE,
EXCLUSIVE,
CALLS,
SUBROUTINES,
USEREVENT_NUMEVENTS,
USEREVENT_MAX,
USEREVENT_MIN,
USEREVENT_MEAN,
USEREVENT_SUMSQR
public void putExclusive(Integer thread,
String event,
String metric,
double value)
PerformanceResult
putExclusive in interface PerformanceResultthread - The thread of interestevent - The event of interestmetric - The metric of interestvalue - The value measured on that thread, event, metric combination
public void putInclusive(Integer thread,
String event,
String metric,
double value)
PerformanceResult
putInclusive in interface PerformanceResultthread - The thread of interestevent - The event of interestmetric - The metric of interestvalue - The value measured on that thread, event, metric combination
public void putSubroutines(Integer thread,
String event,
double value)
PerformanceResult
putSubroutines in interface PerformanceResultthread - The thread of interestevent - The event of interestvalue - The value measured on that thread, event combination
public void putUsereventMax(Integer thread,
String event,
double value)
PerformanceResult
putUsereventMax in interface PerformanceResultthread - The thread of interestevent - The event of interestvalue - The maximum value
public void putUsereventMean(Integer thread,
String event,
double value)
PerformanceResult
putUsereventMean in interface PerformanceResultthread - The thread of interestevent - The event of interestvalue - The mean value
public void putUsereventMin(Integer thread,
String event,
double value)
PerformanceResult
putUsereventMin in interface PerformanceResultthread - The thread of interestevent - The event of interestvalue - The minimum value
public void putUsereventNumevents(Integer thread,
String event,
double value)
PerformanceResult
putUsereventNumevents in interface PerformanceResultthread - The thread of interestevent - The event of interestvalue - The number of events
public void putUsereventSumsqr(Integer thread,
String event,
double value)
PerformanceResult
putUsereventSumsqr in interface PerformanceResultthread - The thread of interestevent - The event of interestvalue - The sum of squared valuespublic void setEventMap(Map<Integer,String> eventMap)
PerformanceResult
setEventMap in interface PerformanceResulteventMap - the eventMap to setMappublic void setIgnoreWarnings(boolean ignore)
PerformanceResult
setIgnoreWarnings in interface PerformanceResultpublic void setMainInclusive(double mainInclusive)
mainInclusive - the mainInclusive to setpublic void setName(String name)
PerformanceResult
setName in interface PerformanceResultname - the name to setpublic void setOriginalThreads(Integer originalThreads)
originalThreads - the originalThreads to setpublic void setTrial(Trial trial)
public void setTrialID(Integer trialID)
public String toString()
PerformanceResult
toString in interface PerformanceResulttoString in class Objectpublic static String typeToString(int type)
public void updateEventMap()
PerformanceResult
updateEventMap in interface PerformanceResult
|
PerfExplorer 2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||