示例#1
0
文件: all.py 项目: lsabc/memoizeit
def setup(args):
    #
    experiments_path = '%s/experiments/%s' % (args.path, args.folder)
    #
    commons.log('Experiment path' + '=' + experiments_path)
    #
    config.set_options_file('%s/memoizeit/options.json' % args.path)
    #
    commons.set_general_path(args.path)
    commons.set_programs_path('%s/programs' % args.path)
    commons.set_libs_path('%s/memoizeit/libs' % args.path)
    commons.set_jars_path('%s/memoizeit/jars' % args.path)
    commons.set_profiles_path('%s/profiles' % args.path)
    commons.set_callgraphs_path('%s/callgraphs' % args.path)
    #
    commons.set_log_depth(True)
    #
    commons.set_filter_using_time(args.time)
    commons.set_filter_using_fields(args.fields)
    #
    commons.log('Setting working path to' + '=' + args.path)
    commons.log('Setting to use log depths' + '=' + str(commons.log_depth()))
    commons.log('Setting to filter methods based on time' + '=' +
                str(commons.filter_using_time()))
    commons.log('Setting to filter methods based on field accesses' + '=' +
                str(commons.filter_using_fields()))
    #
    programs['Soot'] = soot.SootProgram.create(experiments_path, 'toy')
    programs['Checkstyle'] = checkstyle.CheckStyleProgram.create(
        experiments_path, 'original')
    #
    programs['DaCapo-antlr'] = dacapo.DacapoProgram.create(
        experiments_path, 'antlr', 'default')
    programs['DaCapo-bloat'] = dacapo.DacapoProgram.create(
        experiments_path, 'bloat', 'default')
    programs['DaCapo-chart'] = dacapo.DacapoProgram.create(
        experiments_path, 'chart', 'default')
    programs['DaCapo-fop'] = dacapo.DacapoProgram.create(
        experiments_path, 'fop', 'default')
    programs['DaCapo-luindex'] = dacapo.DacapoProgram.create(
        experiments_path, 'luindex', 'default')
    programs['DaCapo-pmd'] = dacapo.DacapoProgram.create(
        experiments_path, 'pmd', 'default')
    #
    programs['Apache-POI'] = poi.ApachePoiProgram.create(
        experiments_path, 'excel_extractor')
    programs['Apache-Tika-Jar'] = tika.ApacheTikaProgram.create(
        experiments_path, 'jars')
    programs['Apache-Tika-Excel'] = tika.ApacheTikaProgram.create_pkg(
        experiments_path, 'excel', 'org.apache.poi')
示例#2
0
文件: all.py 项目: lucadt/memoizeit
def setup(args):
   #
   experiments_path = '%s/experiments/%s' % (args.path, args.folder)
   #
   commons.log('Experiment path' + '=' + experiments_path)
   #
   config.set_options_file('%s/memoizeit/options.json' % args.path)
   #
   commons.set_general_path(args.path)
   commons.set_programs_path('%s/programs' % args.path)
   commons.set_libs_path('%s/memoizeit/libs' % args.path)
   commons.set_jars_path('%s/memoizeit/jars' % args.path)
   commons.set_profiles_path('%s/profiles' % args.path)
   commons.set_callgraphs_path('%s/callgraphs' % args.path)
   #
   commons.set_log_depth(True)
   #
   commons.set_filter_using_time(args.time)
   commons.set_filter_using_fields(args.fields)
   #
   commons.log('Setting working path to' + '=' + args.path)
   commons.log('Setting to use log depths' + '=' + str(commons.log_depth()))
   commons.log('Setting to filter methods based on time' + '=' + str(commons.filter_using_time()))
   commons.log('Setting to filter methods based on field accesses' + '=' + str(commons.filter_using_fields()))
   #
   programs['Soot'] = soot.SootProgram.create(experiments_path, 'toy')
   programs['Checkstyle'] = checkstyle.CheckStyleProgram.create(experiments_path, 'original')
   #
   programs['DaCapo-antlr'] = dacapo.DacapoProgram.create(experiments_path, 'antlr', 'default')
   programs['DaCapo-bloat'] = dacapo.DacapoProgram.create(experiments_path, 'bloat', 'default') 
   programs['DaCapo-chart'] = dacapo.DacapoProgram.create(experiments_path, 'chart', 'default') 
   programs['DaCapo-fop'] = dacapo.DacapoProgram.create(experiments_path, 'fop', 'default') 
   programs['DaCapo-luindex'] = dacapo.DacapoProgram.create(experiments_path, 'luindex', 'default')
   programs['DaCapo-pmd'] = dacapo.DacapoProgram.create(experiments_path, 'pmd', 'default') 
   #
   programs['Apache-POI'] = poi.ApachePoiProgram.create(experiments_path, 'excel_extractor')
   programs['Apache-Tika-Jar'] = tika.ApacheTikaProgram.create(experiments_path, 'jars')
   programs['Apache-Tika-Excel'] = tika.ApacheTikaProgram.create_pkg(experiments_path, 'excel', 'org.apache.poi')
示例#3
0
 def __init__(self, use_max_depth, max_depth, use_hash_code, dump_bytecode):
     self._use_max_depth = use_max_depth
     self._max_depth = max_depth
     self._use_hash_code = use_hash_code
     self._dump_bytecode = dump_bytecode
     self._log_depth = commons.log_depth()
示例#4
0
 def __init__(self, use_max_depth, max_depth, use_hash_code, dump_bytecode):
    self._use_max_depth = use_max_depth
    self._max_depth = max_depth
    self._use_hash_code = use_hash_code
    self._dump_bytecode = dump_bytecode
    self._log_depth = commons.log_depth()