|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Instrumentation.AllocationStatistics.AllocationNumbering
public class AllocationNumbering
An AllocationNumbering
object assigns unique numbers
to each allocations site from a program and (possibly) to each call
sites. Later, these numbers can be used in the instrumenting code
(e.g. InstrumentAllocs
).
Field Summary | |
---|---|
Map |
alloc2int
|
Map |
call2int
|
Constructor Summary | |
---|---|
AllocationNumbering(CachingCodeFactory ccf,
ClassHierarchy ch,
boolean callSites)
Creates an AllocationNumbering object. |
Method Summary | |
---|---|
int |
allocID(Quad q)
|
int |
callID(Quad q)
Return an integer identifying the CALL quad q . |
Set |
getAllocs()
Return the set of instrumented allocation sites. |
Set |
getCalls()
Return the set of instrumented CALLs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Map alloc2int
public final Map call2int
Constructor Detail |
---|
public AllocationNumbering(CachingCodeFactory ccf, ClassHierarchy ch, boolean callSites)
AllocationNumbering
object.
ccf
- CachingCodeFactory
giving the code
that will later be instrumentedch
- ClassHierarchy
for the code from hcfcallSites
- if true, instrument the call sites tooMethod Detail |
---|
public int allocID(Quad q)
allocID
in interface AllocationNumberingInterf
q
public Set getAllocs()
public int callID(Quad q)
q
.
public Set getCalls()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |