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

◆ CreateCSVLog()

void MissionBenchmark::CreateCSVLog ( )
inlineprotected

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

380 {
381 string fileName = "benchmark";
382 if (m_Config.m_CSVName != string.Empty)
383 fileName = m_Config.m_CSVName;
384
385 m_CSVLog = OpenFile("$profile:" + fileName + ".csv", FileMode.WRITE);
386 if ( m_CSVLog == 0 )
387 OnBenchmarkEnd("Failed to create benchmark .csv");
388
389 if (m_Config.m_DoDevPrints)
390 Print("Benchmark .csv created");
391
392 FPrintln(m_CSVLog, "Location,FPS,Time");
393 }
void OnBenchmarkEnd(string reason)
Определения MissionBenchmark.c:346
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().