MCPcopy Create free account
hub / github.com/catboost/catboost / _dump_trace

Method _dump_trace

library/python/pytest/plugins/ya.py:984–993  ·  view source on GitHub ↗
(self, name, value)

Source from the content-addressed store, hash-verified

982 return msg + "[[rst]]"
983
984 def _dump_trace(self, name, value):
985 event = {
986 'timestamp': time.time(),
987 'value': value,
988 'name': name
989 }
990
991 data = yatest_lib.tools.to_str(json.dumps(event, ensure_ascii=False))
992 self._file.write(data + '\n')
993 self._file.flush()
994
995 def _check_sloppy_fork(self, name, value):
996 if self._pid == os.getpid():

Callers 3

_check_sloppy_forkMethod · 0.95
traceMethod · 0.95

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected