/external/autotest/scheduler/ |
D | scheduler_lib.py | 128 def configure_logging(self, log_dir=None, logfile_name=None, argument 139 if log_dir is None: 140 log_dir = self.get_server_log_dir() 144 self.add_file_handler(logfile_name, logging.DEBUG, log_dir=log_dir) 146 log_dir, '%s.latest' % timestamped_logfile_prefix) 151 os.symlink(os.path.join(log_dir, logfile_name), symlink_path) 154 def setup_logging(log_dir, log_name, timestamped_logfile_prefix='scheduler'): argument 162 SchedulerLoggingConfig(), log_dir=log_dir, logfile_name=log_name,
|
D | drone_logging_config.py | 37 def configure_logging(self, log_dir=None, logfile_name=None): argument 58 if log_dir is None: 59 log_dir = self.get_server_log_dir() 65 self.add_file_handler(logfile_name, level, log_dir=log_dir)
|
/external/e2fsprogs/e2fsck/ |
D | logfile.c | 291 char *s0 = 0, *log_dir = 0, *log_fn = 0; in set_up_logging() local 303 profile_get_string(ctx->profile, "options", "log_dir", 0, 0, &log_dir); in set_up_logging() 309 if ((log_fn[0] == '/') || !log_dir || !log_dir[0]) in set_up_logging() 312 if (log_dir && log_dir[0]) { in set_up_logging() 313 alloc_string(&s1, strlen(log_dir) + strlen(s.s) + 2); in set_up_logging() 314 append_string(&s1, log_dir, 0); in set_up_logging() 319 free(log_dir); in set_up_logging() 321 &log_dir); in set_up_logging() 322 if (log_dir && log_dir[0]) { in set_up_logging() 323 alloc_string(&s2, strlen(log_dir) + strlen(s.s) + 2); in set_up_logging() [all …]
|
/external/autotest/site_utils/rpm_control_system/ |
D | rpm_logging_config.py | 61 def set_up_logging_to_file(log_dir, log_filename_format=None): argument 71 logging.basicConfig(filename=_logfile_path(log_dir, log_filename_format), 76 def start_log_server(log_dir, log_filename_format): argument 82 log_filename = _logfile_path(log_dir, log_filename_format) 99 def _logfile_path(log_dir, log_filename_format): argument 105 if not os.path.isdir(log_dir): 106 os.makedirs(log_dir) 107 return os.path.join(log_dir, log_filename)
|
/external/autotest/client/bin/ |
D | client_logging_config.py | 6 def add_debug_file_handlers(self, log_dir, log_name=None): argument 11 self._add_file_handlers_for_all_levels(log_dir, log_name) 20 log_dir = os.path.join(results_dir, 'debug') 21 if not os.path.exists(log_dir): 22 os.mkdir(log_dir) 23 self.add_debug_file_handlers(log_dir)
|
D | site_sysinfo.py | 76 def run(self, log_dir): argument 84 utils.system("mkdir -p %s%s" % (log_dir, parent_dir)) 93 % (" ".join(excludes), from_dir, log_dir, parent_dir)) 259 def run(self, log_dir, collect_init_status=True, collect_all=False): argument 272 self._log_diff(self.dir, log_dir) 275 logdir_temp.run(log_dir) 283 def run(self, log_dir): argument 288 super(purgeable_logdir, self).run(log_dir) 358 log.run(log_dir=None, collect_init_status=True) 372 log.run(log_dir=test_sysinfodir, collect_init_status=False,
|
/external/autotest/server/ |
D | server_logging_config.py | 7 def add_debug_file_handlers(self, log_dir, log_name=None): argument 10 self._add_file_handlers_for_all_levels(log_dir, log_name) 22 log_dir = os.path.join(results_dir, 'debug') 23 if not os.path.exists(log_dir): 24 os.mkdir(log_dir) 25 self.add_debug_file_handlers(log_dir, log_name=debug_log_name)
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | main.py | 98 self.log_dir = options[OPTIONS.RESUME] 101 self.log_dir = options[OPTIONS.REPLAY] 102 fw_str, date = firmware_utils.get_fw_and_date(self.log_dir) 107 self.log_dir = firmware_utils.create_log_dir(firmware_version, mode) 121 self.output = firmware_utils.Output(self.log_dir, 234 filepath = os.path.join(self.log_dir, filename) 253 self.report_name = os.path.join(self.log_dir, fname) 318 def upload_to_gs(log_dir): argument 329 log_path = os.path.join(conf.log_root_dir, log_dir) 495 log_dir = os.path.join(conf.log_root_dir, arg) [all …]
|
D | firmware_utils.py | 159 log_dir = os.path.join(log_root_dir, dir_basename) 164 os.makedirs(log_dir) 166 print 'Error in create the directory (%s): %s' % (log_dir, e) 173 os.symlink(log_dir, latest_symlink) 177 return log_dir 220 def __init__(self, log_dir, report_name, win, report_html): argument 221 self.log_dir = log_dir
|
D | firmware_summary.py | 98 def __init__(self, log_dir, display_metrics=False, debug_flag=False, argument 105 if os.path.isdir(log_dir): 106 self.log_dir = log_dir 109 print error_msg % log_dir 114 self.slog = firmware_log.SummaryLog(log_dir,
|
/external/autotest/site_utils/ |
D | loglib.py | 44 configure_logging(parser.prog, args.log_dir) 47 def configure_logging(name, log_dir=None): argument 55 if log_dir is None: 67 'filename': os.path.join(log_dir, '%s.log' % name),
|
D | abort_suite.py | 82 log_dir = os.path.join(common.autotest_dir, 'logs') 83 if not os.path.exists(log_dir): 84 os.makedirs(log_dir) 86 log_name = os.path.join(log_dir, log_name)
|
D | perf_csv_uploader.py | 176 def setup_logging(log_dir): argument 182 logfile = os.path.join(os.path.abspath(log_dir), 'perf_csv_uploader.log') 234 setup_logging(options.log_dir) 235 test_attribute_id_file = os.path.join(options.log_dir,
|
/external/autotest/client/common_lib/ |
D | logging_config.py | 107 log_dir=None, argument 109 if log_dir: 110 file_path = os.path.join(log_dir, file_path) 123 def _add_file_handlers_for_all_levels(self, log_dir, log_name): argument 127 self.add_file_handler(file_name, level=level, log_dir=log_dir) 129 def add_debug_file_handlers(self, log_dir, log_name=None): argument
|
/external/autotest/client/site_tests/firmware_TouchMTB/tools/ |
D | print_log.py | 21 def _print_log(log_dir): argument 23 filenames = glob.glob(os.path.join(log_dir, '*.log')) 50 log_dir = sys.argv[1] variable 51 _print_log(log_dir)
|
/external/tensorflow/tensorflow/python/tools/ |
D | import_pb_to_tensorboard.py | 43 def import_to_tensorboard(model_dir, log_dir): argument 61 pb_visual_writer = summary.FileWriter(log_dir) 64 "tensorboard --logdir={}".format(log_dir)) 68 import_to_tensorboard(FLAGS.model_dir, FLAGS.log_dir)
|
/external/autotest/client/tests/ctcs/ |
D | ctcs.py | 86 log_dir = glob.glob(os.path.join(log_base_path, 88 logging.debug('Copying %s log directory to results dir', log_dir) 89 dst = os.path.join(self.resultsdir, os.path.basename(log_dir)) 90 shutil.move(log_dir, dst)
|
/external/tensorflow/tensorflow/examples/tutorials/word2vec/ |
D | word2vec_basic.py | 40 def word2vec_basic(log_dir): argument 43 if not os.path.exists(log_dir): 44 os.makedirs(log_dir) 231 writer = tf.summary.FileWriter(log_dir, session.graph) 285 with open(log_dir + '/metadata.tsv', 'w') as f: 290 saver.save(session, os.path.join(log_dir, 'model.ckpt')) 297 embedding_conf.metadata_path = os.path.join(log_dir, 'metadata.tsv') 354 word2vec_basic(flags.log_dir)
|
/external/tensorflow/tensorflow/examples/tutorials/mnist/ |
D | fully_connected_feed.py | 155 summary_writer = tf.summary.FileWriter(FLAGS.log_dir, sess.graph) 193 checkpoint_file = os.path.join(FLAGS.log_dir, 'model.ckpt') 219 if tf.gfile.Exists(FLAGS.log_dir): 220 tf.gfile.DeleteRecursively(FLAGS.log_dir) 221 tf.gfile.MakeDirs(FLAGS.log_dir)
|
D | mnist_with_summaries.py | 141 train_writer = tf.summary.FileWriter(FLAGS.log_dir + '/train', sess.graph) 142 test_writer = tf.summary.FileWriter(FLAGS.log_dir + '/test') 183 if tf.gfile.Exists(FLAGS.log_dir): 184 tf.gfile.DeleteRecursively(FLAGS.log_dir) 185 tf.gfile.MakeDirs(FLAGS.log_dir)
|
/external/toolchain-utils/crosperf/ |
D | crosperf.py | 96 log_dir = os.path.abspath(os.path.expanduser(options.log_dir)) 97 logger.GetLogger(log_dir) 114 working_directory, log_dir)
|
D | experiment.py | 29 acquire_timeout, log_dir, log_level, share_cache, argument 43 self.log_dir = log_dir 80 self.l = logger.GetLogger(log_dir) 127 logger_to_use = logger.Logger(self.log_dir, 'run.%s' % (full_name),
|
/external/tensorflow/tensorflow/python/keras/ |
D | callbacks_v1.py | 118 log_dir='./logs', argument 131 self.log_dir = log_dir 168 self.writer = summary_ops_v2.create_file_writer(self.log_dir) 173 self.writer = tf_summary.FileWriter(self.log_dir, K.get_graph()) 175 self.writer = tf_summary.FileWriter(self.log_dir) 362 profiler.save(self.log_dir, profiler.stop()) 448 os.path.join(self.log_dir, 'keras_embedding.ckpt'), 455 profiler.save(self.log_dir, profiler.stop())
|
/external/toolchain-utils/cros_utils/ |
D | logger.py | 340 def InitLogger(script_name, log_dir, print_console=True, mock=False): argument 346 if not log_dir: 347 log_dir = rootdir 349 main_logger = Logger(log_dir, basefilename, print_console) 351 main_logger = MockLogger(log_dir, basefilename, print_console) 354 def GetLogger(log_dir='', mock=False): argument 356 InitLogger(sys.argv[0], log_dir, mock=mock)
|
/external/tensorflow/tensorflow/contrib/tfprof/ |
D | tfprof_logger.py | 28 def write_op_log(graph, log_dir, op_log=None, run_meta=None, add_trace=True): argument 29 _write_op_log(graph, log_dir, op_log, run_meta, add_trace)
|