From 29ef8ca329bb3a460f5e291d12c1d219ae619897 Mon Sep 17 00:00:00 2001 From: rachytski Date: Sun, 13 Feb 2011 20:04:50 +0200 Subject: [PATCH] separating benchmark results by deviceID. --- map/information_display.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/map/information_display.cpp b/map/information_display.cpp index a6c95d4d04..2e8d296df3 100644 --- a/map/information_display.cpp +++ b/map/information_display.cpp @@ -420,7 +420,10 @@ bool InformationDisplay::addBenchmarkInfo(string const & name, m2::RectD const & info.m_rect = globalRect; m_benchmarkInfo.push_back(info); - ofstream fout(GetPlatform().WritablePathForFile("benchmark_results.txt").c_str(), ios::app); + string deviceID = GetPlatform().DeviceID(); + transform(deviceID.begin(), deviceID.end(), deviceID.begin(), ::tolower); + + ofstream fout(GetPlatform().WritablePathForFile(deviceID + "_benchmark_results.txt").c_str(), ios::app); fout << GetPlatform().DeviceID() << " " << VERSION_STRING << " " << info.m_name << " "