0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 16:11:02 +08:00

Sample dump to file

This commit is contained in:
Victor Zarubkin 2016-08-01 22:15:40 +03:00
parent 35faba94c9
commit 146b0ccdfc

View File

@ -213,10 +213,12 @@ int main()
auto elapsed =
std::chrono::duration_cast<std::chrono::microseconds>(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;