/* * Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions.
*/
privatefinal Vector summation = new Vector(100000); privatefinal Vector idList = new Vector(100000);
public CGT(String[] args) {
parse(args);
Globals.initialize(ClistPath);
outputStats(args);
}
publicstaticvoid main(String[] args) {
stressOptions.parseCommandLine(args); new CGT(args).run();
}
publicvoid outputStats(String[] args) {
System.out.println("CGT command line options:"); for (String arg : args) {
System.out.println("# " + arg);
}
System.out.println();
System.out.println("CGT parameters");
System.out.println("Seed: " + Utils.SEED);
System.out.println("Number of Random Loop iterations: " + Globals.RANDOM_LOOP);
System.out.println("Number of Static Loop iterations: " + Globals.STATIC_LOOP);
System.out.println("Max number of Methods in the Graph: " + Globals.NUM_TEST_CLASSES);
System.out.println("Verbose function calls: " + Globals.VERBOSE);
if ("".equals(ClistPath)) {
usage(); thrownew Error("TESTBUG: class list path not defined");
}
}
publicvoid usage() {
System.out.println("usage: java CGT [options]");
System.out.println(" -help prints out this message");
System.out.println(" -numTestClass # limits the number of \"Test Methods\" to #");
System.out.println(" -randomcLoop # # of random function calls");
System.out.println(" -staticLoop # # of non-random static function calls");
System.out.println(" -v -verbose turn on verbose mode");
System.out.println(" -path required, argument so program can find classes");
}
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.23 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.