|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectChicory
public class Chicory
This is the main class for Chicory which transforms the class files of a program to instrument it for Daikon. The instrumentation uses the javaagent switch to java (which allows classes to be instrumented as they are loaded). This class parses the command line arguments, starts java with the javaagent switch on the target program and if requested starts Daikon on the result.
| Field Summary | |
|---|---|
static Pattern |
boot_classes
|
static boolean |
checkStaticInit
flag to use if we want to turn on the static initialization checks |
static File |
comparability_file
|
static File |
config_dir
|
static boolean |
daikon
|
static String |
daikon_args
Specifies Daikon arguments to be used if Daikon is run on a generated trace file or online via a socket. |
static boolean |
daikon_online
|
static Process |
daikon_proc
daikon process for --daikon switch |
static boolean |
debug
|
static boolean |
debug_ppt_names
|
static boolean |
debug_transform
|
static boolean |
default_bcel
|
static File |
dtrace_file
|
static StreamRedirectThread |
err_thread
Thread that copies stderr from target to our stderr |
static String |
heap_size
|
static boolean |
linked_lists
|
static int |
nesting_depth
|
static boolean |
new_decl_format
|
static Pattern |
omit_var
|
static StreamRedirectThread |
out_thread
Thread that copies output from target to our output |
static File |
output_dir
|
static List<Pattern> |
ppt_omit_pattern
|
static List<Pattern> |
ppt_select_pattern
|
static File |
premain
Path to java agent jar file that performs the transformation. |
static File |
purity_file
The name of the file to read for a list of pure methods. |
static int |
sample_start
|
static long |
start
starting time (msecs) |
static boolean |
std_visibility
|
static String |
synopsis
Synopsis for the chicory command line |
static boolean |
verbose
|
| Constructor Summary | |
|---|---|
Chicory()
|
|
| Method Summary | |
|---|---|
String |
args_to_string(List<String> args)
convert a list of arguments into a command line string |
static boolean |
check_args(Options options,
String[] target_args)
Check the resulting arguments for legality. |
static boolean |
doPurity()
Return true iff argument was given to run a purity analysis Only run after running parse_args |
static long |
elapsed_msecs()
|
static String |
elapsed()
Returns elapsed time as a String since the start of the program |
static File |
get_purity_file()
Return true iff a file name was specified to supply pure method names |
static void |
main(String[] args)
Entry point of Chicory |
PrintWriter |
openFileInDirectory(String fileName,
String dirName)
|
String[] |
parseDaikonArgs(String arg)
|
int |
redirect_wait(Process p)
Wait for stream redirect threads to complete and return its exit status |
void |
runDaikon()
Runs daikon either online or on the generated trace file. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static File dtrace_file
public static Pattern omit_var
public static File output_dir
public static int nesting_depth
public static List<Pattern> ppt_omit_pattern
public static List<Pattern> ppt_select_pattern
public static File comparability_file
public static boolean verbose
public static boolean std_visibility
public static boolean debug
public static boolean debug_transform
public static Pattern boot_classes
public static String heap_size
public static boolean debug_ppt_names
public static boolean new_decl_format
public static boolean default_bcel
public static File premain
ChicoryPremain.premain(java.lang.String, java.lang.instrument.Instrumentation)public static File purity_file
public static File config_dir
public static boolean daikon
public static boolean daikon_online
public static String daikon_args
public static boolean linked_lists
public static int sample_start
public static StreamRedirectThread out_thread
public static StreamRedirectThread err_thread
public static long start
public static Process daikon_proc
public static final boolean checkStaticInit
public static final String synopsis
| Constructor Detail |
|---|
public Chicory()
| Method Detail |
|---|
public static void main(String[] args)
args - see usage for argument descriptions
public static boolean check_args(Options options,
String[] target_args)
public static boolean doPurity()
public static File get_purity_file()
public void runDaikon()
public int redirect_wait(Process p)
public PrintWriter openFileInDirectory(String fileName,
String dirName)
public static String elapsed()
public static long elapsed_msecs()
public String args_to_string(List<String> args)
public String[] parseDaikonArgs(String arg)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||