mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 08:01:51 +08:00
Update README.md
This commit is contained in:
parent
365d1608be
commit
870d2b5545
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user