Esempio n. 1
0
 def time_jvisualvm(self):
     commons.log('Time analysis (JVisualVM)' + ' -- ' + '"' + self.prefix +
                 '"')
     tag = ['time', 'convert', None, None]
     time_profile_file = '%s/%s/%s' % (
         self.options.folder, config.time_dir(), config.time_profile_file())
     time_statistics_file = '%s/%s/%s' % (
         self.options.folder, config.time_dir(), config.statistics_file())
     time_output_file = '%s/%s/%s' % (
         self.options.folder, config.time_dir(), config.time_output_file())
     time_total_file = '%s/%s/%s' % (self.options.folder, config.time_dir(),
                                     config.time_total_file())
     converter_params = [
         time_profile_file, time_statistics_file, time_total_file
     ]
     self._execute(
         tag,
         commons.scala_options() + self._get_time_converter_class() +
         converter_params)
     tag = ['time', 'filter', None, None]
     filter_params = [
         time_statistics_file, time_total_file, time_output_file
     ]
     self._execute(
         tag,
         commons.scala_options() + self._get_time_filter_class() +
         filter_params + self.time_options.as_list_plain)
     commons.log('Time analysis (JVisualVM)' + ' -- ' + '"' + self.prefix +
                 '"' + ' -- ' + 'DONE.')
Esempio n. 2
0
 def time_jvisualvm(self):
    commons.log('Time analysis (JVisualVM)' + ' -- ' + '"' + self.prefix + '"')
    tag=['time', 'convert', None, None]
    time_profile_file = '%s/%s/%s' % (self.options.folder, config.time_dir(), config.time_profile_file()) 
    time_statistics_file = '%s/%s/%s' % (self.options.folder, config.time_dir(), config.statistics_file()) 
    time_output_file = '%s/%s/%s' % (self.options.folder, config.time_dir(), config.time_output_file())
    time_total_file = '%s/%s/%s' % (self.options.folder, config.time_dir(), config.time_total_file())
    converter_params = [time_profile_file, time_statistics_file, time_total_file]
    self._execute(tag, commons.scala_options() + self._get_time_converter_class() + converter_params)
    tag=['time', 'filter', None, None]
    filter_params = [time_statistics_file, time_total_file, time_output_file]
    self._execute(tag, commons.scala_options() + self._get_time_filter_class() + filter_params + self.time_options.as_list_plain)
    commons.log('Time analysis (JVisualVM)' + ' -- ' + '"' + self.prefix + '"' + ' -- ' + 'DONE.')
Esempio n. 3
0
 def _ranking(self, cluster):
    #
    if cluster == True:
       options_cluster = ['0.01', '0.5', 'true']
    else:
       options_cluster = ['0.01', '0.5', 'false']
    #
    time_stats_file = '%s/%s/stats.txt' % (self.folder, config.time_dir())
    time_total_file = '%s/%s/%s' % (self.folder, config.time_dir(), config.time_total_file())
    time_profile_file = '%s/%s/%s' % (self.folder, config.time_dir(), config.time_profile_file())
    tuples_file = '%s/%s' % (self.folder, config.tuples_final_file())       
    #
    call_graph_file = '%s/%s/%s/call_graph.bin' % (commons.callgraphs_path(), self.program.path, self.program.prefix)
    #
    running = 'java -cp %s cpb.RankAndInspect %s %s %s %s %s %s' % (commons.scala_libs(), self.program.prefix, time_stats_file, time_total_file, tuples_file, call_graph_file, time_profile_file)
    subprocess.call(shlex.split(str(running)) + options_cluster)
Esempio n. 4
0
 def _ranking(self, cluster):
     #
     if cluster == True:
         options_cluster = ['0.01', '0.5', 'true']
     else:
         options_cluster = ['0.01', '0.5', 'false']
     #
     time_stats_file = '%s/%s/stats.txt' % (self.folder, config.time_dir())
     time_total_file = '%s/%s/%s' % (self.folder, config.time_dir(),
                                     config.time_total_file())
     time_profile_file = '%s/%s/%s' % (self.folder, config.time_dir(),
                                       config.time_profile_file())
     tuples_file = '%s/%s' % (self.folder, config.tuples_final_file())
     #
     call_graph_file = '%s/%s/%s/call_graph.bin' % (
         commons.callgraphs_path(), self.program.path, self.program.prefix)
     #
     running = 'java -cp %s cpb.RankAndInspect %s %s %s %s %s %s' % (
         commons.scala_libs(), self.program.prefix, time_stats_file,
         time_total_file, tuples_file, call_graph_file, time_profile_file)
     subprocess.call(shlex.split(str(running)) + options_cluster)