Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2011-02-13 16:45:33 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:12:22 +0300
commit197885e18f0a22a6a1d59e7beacdeb7400799aca (patch)
tree1e16028b3793343021652e9fe1af03f7ea27fabe /map
parent9a27df966320c0f0f5c35be4ec61d2320dea3f72 (diff)
saving benchmark results.
Diffstat (limited to 'map')
-rw-r--r--map/information_display.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/map/information_display.cpp b/map/information_display.cpp
index c105a77fb3..a6c95d4d04 100644
--- a/map/information_display.cpp
+++ b/map/information_display.cpp
@@ -4,10 +4,13 @@
#include "drawer_yg.hpp"
#include "../indexer/mercator.hpp"
-#include "../base/string_utils.hpp"
#include "../yg/defines.hpp"
#include "../yg/skin.hpp"
+#include "../std/fstream.hpp"
+#include "../version/version.hpp"
+
+#include "../base/string_utils.hpp"
#include "../base/logging.hpp"
InformationDisplay::InformationDisplay()
@@ -416,6 +419,17 @@ bool InformationDisplay::addBenchmarkInfo(string const & name, m2::RectD const &
info.m_duration = frameDuration;
info.m_rect = globalRect;
m_benchmarkInfo.push_back(info);
+
+ ofstream fout(GetPlatform().WritablePathForFile("benchmark_results.txt").c_str(), ios::app);
+ fout << GetPlatform().DeviceID() << " "
+ << VERSION_STRING << " "
+ << info.m_name << " "
+ << info.m_rect.minX() << " "
+ << info.m_rect.minY() << " "
+ << info.m_rect.maxX() << " "
+ << info.m_rect.maxY() << " "
+ << info.m_duration << endl;
+
return true;
}
return false;