DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateCSVLog()

void MissionBenchmark::CreateCSVLog ( )
inlineprotected

См. определение в файле MissionBenchmark.c строка 381

382 {
383 string fileName = "benchmark";
384 if (m_Config.m_CSVName != string.Empty)
385 fileName = m_Config.m_CSVName;
386
387 m_CSVLog = OpenFile("$profile:" + fileName + ".csv", FileMode.WRITE);
388 if ( m_CSVLog == 0 )
389 OnBenchmarkEnd("Failed to create benchmark .csv");
390
391 if (m_Config.m_DoDevPrints)
392 Print("Benchmark .csv created");
393
394 FPrintln(m_CSVLog, "location,FPS,time");
395 }
void OnBenchmarkEnd(string reason)
Определения MissionBenchmark.c:347
ref BenchmarkConfig m_Config
Определения MissionBenchmark.c:131
FileHandle m_CSVLog
Определения MissionBenchmark.c:127
proto void Print(void var)
Prints content of variable to console/log.
FileMode
Определения EnSystem.c:383
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
proto void FPrintln(FileHandle file, void var)
Write to file and add new line.

Перекрестные ссылки FPrintln(), m_Config, m_CSVLog, OnBenchmarkEnd(), OpenFile() и Print().

Используется в Start().