public class EventTimer extends TransformPass
PragmaAnnotation.Event annotations. The annotations may be
inserted either manually or automatically.| Constructor and Description |
|---|
EventTimer(Program prog)
Constructs an event-timing instrumenter with the specified program.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPassName()
Returns the name of this pass
|
void |
start()
Performs instrumentation after analyzing the program to collect
information required to generate the profiling instrumentation.
|
void |
transformTUnit(TranslationUnit tunit)
Inserts timing library calls at the location specified by event-type
annotation.
|
runpublic EventTimer(Program prog)
prog - the program to be instrumented.public java.lang.String getPassName()
getPassName in class TransformPasspublic void start()
start in class TransformPasspublic void transformTUnit(TranslationUnit tunit)
tunit - the translation unit to be transformed.