| 7525 | } |
| 7526 | |
| 7527 | static void WriteMainTestResult( |
| 7528 | FILE* file, |
| 7529 | const char* codeDescription, |
| 7530 | const char* testDescription, |
| 7531 | const Config& config, const Result& result) |
| 7532 | { |
| 7533 | float totalTimeSeconds = ToFloatSeconds(result.TotalTime); |
| 7534 | float allocationTimeMinSeconds = ToFloatSeconds(result.AllocationTimeMin); |
| 7535 | float allocationTimeAvgSeconds = ToFloatSeconds(result.AllocationTimeAvg); |
| 7536 | float allocationTimeMaxSeconds = ToFloatSeconds(result.AllocationTimeMax); |
| 7537 | float deallocationTimeMinSeconds = ToFloatSeconds(result.DeallocationTimeMin); |
| 7538 | float deallocationTimeAvgSeconds = ToFloatSeconds(result.DeallocationTimeAvg); |
| 7539 | float deallocationTimeMaxSeconds = ToFloatSeconds(result.DeallocationTimeMax); |
| 7540 | |
| 7541 | std::string currTime; |
| 7542 | CurrentTimeToStr(currTime); |
| 7543 | |
| 7544 | fprintf(file, |
| 7545 | "%s,%s,%s," |
| 7546 | "%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%I64u,%I64u,%I64u\n", |
| 7547 | codeDescription, |
| 7548 | currTime.c_str(), |
| 7549 | testDescription, |
| 7550 | totalTimeSeconds * 1e6f, |
| 7551 | allocationTimeMinSeconds * 1e6f, |
| 7552 | allocationTimeAvgSeconds * 1e6f, |
| 7553 | allocationTimeMaxSeconds * 1e6f, |
| 7554 | deallocationTimeMinSeconds * 1e6f, |
| 7555 | deallocationTimeAvgSeconds * 1e6f, |
| 7556 | deallocationTimeMaxSeconds * 1e6f, |
| 7557 | result.TotalMemoryAllocated, |
| 7558 | result.FreeRangeSizeAvg, |
| 7559 | result.FreeRangeSizeMax); |
| 7560 | } |
| 7561 | |
| 7562 | static void WritePoolTestResultHeader(FILE* file) |
| 7563 | { |
no test coverage detected