|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.Debug
Debug:
Debug class for printing debug information.
Debug-print can be controlled by command option
-coins:trace=xx1.n1/xx2.n2 ... where
xx1, xx2, .. are one of
Control -- What phases and (principal) modules are executed
HIR -- HIR information
Sym -- Sym and symbol table information
Flow -- Control flow and data flow information
Alias -- Alias analysis information //##31
Parse -- C Parser information
ToHir -- C-AST (abstract syntax tree of C) to HIR transformation inf
Opt1 -- HIR optimizer information
Para1 -- Loop parallelizer information
and n1, n2, ... are debug level of corresponding debug-control.
0: no output, 1: major, ... 9: very much detailed information.
Example:
-coins:trace=HIR.1/Sym.1/Flow.2
Note:
There are other debug-print control items that do not use
this Debug class. See TRACE of Registry.java.
| Constructor Summary | |
Debug(IoRoot pIoRoot)
Debug: Constructor to initiate all Debug objects. |
|
Debug(IoRoot pIoRoot,
java.lang.String pHeader,
int pDebugLevel)
Debug: Constructor for each Debug class. |
|
| Method Summary | |
int |
getLevel()
|
void |
initiate()
Initialize debug control information. |
void |
print(int pLevel,
java.lang.String pMessage)
print without at-parameter: Print debug message if pLevel <= fDebugLevel at the end of current line (without starting new line). |
void |
print(int pLevel,
java.lang.String pAt,
java.lang.String pMessage)
print with at-parameter: Print debug message if pLevel <= fDebugLevel after starting new line. |
void |
println(int pLevel)
println: Line feed if pLevel <= fDebugLevel. |
void |
printObject(int pLevel,
java.lang.String pHeader,
java.lang.Object pObject)
printObject: Print pObject.toString() if pObject is not null after pHeader. |
void |
setLevel(int pLevel)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Debug(IoRoot pIoRoot)
public Debug(IoRoot pIoRoot,
java.lang.String pHeader,
int pDebugLevel)
| Method Detail |
public void initiate()
public void print(int pLevel,
java.lang.String pAt,
java.lang.String pMessage)
pAt - : Shows where the message is issued (method name, etc.)
public void print(int pLevel,
java.lang.String pMessage)
public void println(int pLevel)
public void printObject(int pLevel,
java.lang.String pHeader,
java.lang.Object pObject)
public void setLevel(int pLevel)
public int getLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||