From 870d2b5545455b04b9faec205a8f1c9a1ea76fcd Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Sat, 21 Jan 2017 01:25:06 +0400 Subject: [PATCH] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 32bb5c1..ccc7779 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ You can see the results of measuring in simple GUI application which provides fu # Usage +## Add profiling blocks + First of all you can specify path to include directory which contains `include/profiler` directory and define macro `BUILD_WITH_EASY_PROFILER`. For linking with easy_profiler you can specify path to library. @@ -83,6 +85,9 @@ void bar() { // some code } ``` +## Collect blocks + +To collect blocks data you can either save them in file by `profiler::dumpBlocksToFile(const char*)`function or listen capturing signal from profiler_gui application. In the latter case you may control captruing blocks in GUI-based application after calling function `profiler::startListen()`. # Build