def compose_config(self):
streams_config = '<STR_LIT>'<EOL>stat_benchmarks = '<STR_LIT>'<EOL>for stream in self.streams:<EOL><INDENT>streams_config += stream.compose_config()<EOL>if not stream.is_main:<EOL><INDENT>stat_benchmarks += "<STR_LIT:U+0020>" + "<STR_LIT>" % stream.sequence_no<EOL><DEDENT><DEDENT>kwargs = {}<EOL>kwargs['<STR_LIT>'] = self.threads<EOL>kwargs['<STR_LIT>'] = self.phantom_log<EOL>kwargs['<STR_LIT>'] = self.stat_log<EOL>kwargs['<STR_LIT>'] = streams_config<EOL>kwargs['<STR_LIT>'] = stat_benchmarks<EOL>kwargs['<STR_LIT>'] = self.additional_libs<EOL>kwargs['<STR_LIT>'] = self.phantom_modules_path<EOL>filename = self.core.mkstemp("<STR_LIT>", "<STR_LIT>")<EOL>self.core.add_artifact_file(filename)<EOL>logger.debug("<STR_LIT>", filename)<EOL>template_str = resource_string(__name__, "<STR_LIT>")<EOL>tpl = string.Template(template_str)<EOL>config = tpl.substitute(kwargs)<EOL>with open(filename, '<STR_LIT:w>') as conffile:<EOL><INDENT>conffile.write(config)<EOL><DEDENT>return filename<EOL>
Generate phantom tool run config