| 135 | TVector<TString> ErrorMessages; |
| 136 | |
| 137 | inline void Trace(const TString eventName, const NJson::TJsonValue eventValue) { |
| 138 | NJsonWriter::TBuf json(NJsonWriter::HEM_UNSAFE); |
| 139 | json.BeginObject(); |
| 140 | |
| 141 | json.WriteKey("name").WriteString(eventName); |
| 142 | json.WriteKey("value").WriteJsonValue(&eventValue); |
| 143 | json.WriteKey("timestamp").WriteDouble(TInstant::Now().SecondsFloat(), PREC_NDIGITS, 14); |
| 144 | |
| 145 | json.EndObject(); |
| 146 | |
| 147 | json.FlushTo(TraceFile.Get()); |
| 148 | *TraceFile << "\n"; |
| 149 | } |
| 150 | |
| 151 | inline void TraceSubtestFinished(const char* className, const char* subtestName, const char* status, const TString comment, const TTestContext* context) { |
| 152 | const TInstant now = TInstant::Now(); |