From 146b0ccdfc0c17b9a117cbffba406aebb24941f1 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Mon, 1 Aug 2016 22:15:40 +0300 Subject: [PATCH] Sample dump to file --- sample/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sample/main.cpp b/sample/main.cpp index 949ca00..3e21801 100644 --- a/sample/main.cpp +++ b/sample/main.cpp @@ -213,10 +213,12 @@ int main() auto elapsed = std::chrono::duration_cast(end - start); + ::profiler::dumpBlocksToFile("sample.prof"); + std::cout << elapsed.count() << " usec" << std::endl; thread_blocks_tree_t threaded_trees; - auto blocks_counter = fillTreesFromFile("test.prof", threaded_trees); + auto blocks_counter = fillTreesFromFile("sample.prof", threaded_trees); std::cout << "Blocks count: " << blocks_counter << std::endl; char c;