} else if (arg.compareTo("-generate_statistics") == 0) { if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -generate_statistics"); generate_statistics = true;
  public void processArgs(String args[], boolean singleton)   {    for (int i=0; i<args.length; i++) {      String arg = args[i];      if (arg.compareTo("-aggregate") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -aggregate");	print_aggregate = true;      } else if (arg.compareTo("-aggregate_by_thread") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -aggregate_by_thread");	print_aggregate_by_thread = true;      } else if (arg.compareTo("-application") == 0) {	application = args[++i];	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -application "+application);      } else if (arg.compareTo("-events") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -events");	print_events = true;      } else if (arg.compareTo("-structure") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -structure");	print_structure = true;      } else if (arg.compareTo("-group_index") == 0) {	String Index = args[++i];	try {	  group_index = Integer.parseInt(Index);	} catch (NumberFormatException e) {	  System.out.println("\n***CommandLineOptions.processArgs() \"-group_index "+Index+"\" throws NumberFormatException!***");	  usage();	}	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -group_index "+group_index);      } else if (arg.compareTo("-event_mask") == 0) {	String Mask = args[++i];	try {	  event_mask = Integer.parseInt(Mask);	} catch (NumberFormatException e) {	  System.out.println("\n***CommandLineOptions.processArgs() \"-event_mask "+Mask+"\" throws NumberFormatException!***");	  usage();	}	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -event_mask "+event_mask);      } else if (arg.compareTo("-generate_statistics") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -generate_statistics");	generate_statistics = true;      } else if (arg.compareTo("-local") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -local");	print_local = true;      } else if (arg.compareTo("-no_yields") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -no_yields");	no_yields = true;      } else if (arg.compareTo("-threads") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -threads");	print_threads = true;      } else if (arg.compareTo("-run") == 0) {	String Run = args[++i];	try {	  run = Integer.parseInt(Run);	} catch (NumberFormatException e) {	  System.out.println("\n***CommandLineOptions.processArgs() \"-run "+Run+"\" throws NumberFormatException!***");	  usage();	}	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -run "+run);      } else if (arg.compareTo("-tid") == 0) {	String Index = args[++i];	try {	  tid = Integer.parseInt(Index);	} catch (NumberFormatException e) {	  System.out.println("\n***CommandLineOptions.processArgs() \"-tid "+Index+"\" throws NumberFormatException!***");	  usage();	}	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -tid "+tid);      } else if (arg.compareTo("-trace") == 0) {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -trace");	print_trace = true;      } else if (arg.compareTo("-verbose") == 0) {	String Value = args[++i];	try {	  verbose = Integer.parseInt(Value);	} catch (NumberFormatException e) {	  System.out.println("\n***CommandLineOptions.processArgs() \"-verbose "+Value+"\" throws NumberFormatException!***");	  usage();	}	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -verbose "+verbose);      } else if (arg.compareTo("-debug") == 0) {	String Value = args[++i];	try {	  debug = Integer.parseInt(Value);	} catch (NumberFormatException e) {	  System.out.println("\n***CommandLineOptions.processArgs() \"-debug "+Value+"\" throws NumberFormatException!***");	  usage();	}	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() -debug "+debug);      } else if (arg.charAt(0) != '-') {	if(local_debug>=2)System.out.println("CommandLineOptions.processArgs() trace_filenames["+trace_file_index+"] = \""+arg+"\"");	trace_filenames[trace_file_index++] = arg;	if(singleton && trace_file_index > 1) {	  System.out.println("***CommandLineOptions.processArgs() multiple trace files specified! Only one allowed!***\n");	  usage();	}      } else {	System.out.println("\n***Unknown command line options: \""+arg+"\"!***");	usage();      }    }    if(generate_statistics && event_mask == UNINITIALIZED) {      System.out.println("\n***CommandLineOptions.processArgs() event_mask "+event_mask+" must be specified when generate_statistics is specified!***");      usage();    }    if (run != -1 && application == null) {      System.out.println("\n***CommandLineOptions.processArgs() -application must be specified when -run "+run+" is specified!***");      usage();    }  }