|
SandMark version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.watermark.ct.embed.PrepareTrace
Nested Class Summary | |
(package private) static class |
PrepareTrace.TraceLocation
|
Constructor Summary | |
PrepareTrace()
|
Method Summary | |
static EmbedData[] |
allocate(TracePoint[] traceData,
MethodID[] methods)
Allocate the code fragments among the trace points. |
(package private) static MethodID[][] |
distribute(MethodID[] flist,
int n)
Distributes a set of code fragments among insertion points. |
static void |
main(java.lang.String[] args)
Test this class. |
(package private) static void |
test(java.util.Properties props,
java.lang.String header,
TracePoint[] tracePoints,
MethodID[] creators)
Run a test of this class. |
(package private) static TracePoint |
TP(java.lang.String value,
java.lang.String callerName,
java.lang.String callerLocation,
int bytecodeLoc,
int lineNumber)
Construct a trace point. |
(package private) static PrepareTrace.TraceLocation[] |
uniquify(TracePoint[] traceData)
The LOCATION/VALUE flags are determined by looking at all the traces that come from the same location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrepareTrace()
Method Detail |
static MethodID[][] distribute(MethodID[] flist, int n)
flist
- code fragment listn
- number of insertion points
This method needs to be more random. It seems like the first
trace point is always picked, for example.static PrepareTrace.TraceLocation[] uniquify(TracePoint[] traceData)
traceData
- the code points that were touched during tracing.public static EmbedData[] allocate(TracePoint[] traceData, MethodID[] methods) throws java.lang.Exception
traceData
- annotation points hit during tracingmethods
- array of methods to insert
java.lang.Exception
static void test(java.util.Properties props, java.lang.String header, TracePoint[] tracePoints, MethodID[] creators) throws java.lang.Exception
java.lang.Exception
static TracePoint TP(java.lang.String value, java.lang.String callerName, java.lang.String callerLocation, int bytecodeLoc, int lineNumber)
value
- the value at the trace pointcallerName
- the name of the callercallerLocation
- the name of the caller locationbytecodeLoc
- the botecode locationlineNumber
- the line numberpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
SandMark version 3.0 Wed Jan 29 10:30:05 MST 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |