mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 08:41:02 +08:00
Sample dump to file
This commit is contained in:
parent
35faba94c9
commit
146b0ccdfc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user