From 9b2cdcdd618de789e234e6ae66959e27040dbfa2 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 17 Oct 2011 17:31:01 +0200 Subject: [PATCH] [benchmark_tool] Exit after displaying scales --- map/benchmark_tool/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/map/benchmark_tool/main.cpp b/map/benchmark_tool/main.cpp index bb04669279..d43e3fc20d 100644 --- a/map/benchmark_tool/main.cpp +++ b/map/benchmark_tool/main.cpp @@ -14,7 +14,7 @@ DEFINE_string(input, "", "MWM file name in the data directory"); DEFINE_int32(count, 3, "How many times to run benchmark"); DEFINE_int32(lowS, 10, "Low processing scale"); DEFINE_int32(highS, 17, "High processing scale"); -DEFINE_bool(print_scales, false, "Print geometry scales for MWM"); +DEFINE_bool(print_scales, false, "Print geometry scales for MWM and exit"); int main(int argc, char ** argv) { @@ -38,9 +38,11 @@ int main(int argc, char ** argv) feature::DataHeader h; LoadMapHeader(pl.GetReader(FLAGS_input), h); + cout << "Scales with geometry: "; for (size_t i = 0; i < h.GetScalesCount(); ++i) cout << h.GetScale(i) << " "; cout << endl; + return 0; } if (!FLAGS_input.empty())