mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 08:01:51 +08:00
Update Readme
This commit is contained in:
parent
f8ab7f0d91
commit
49091c73ca
@ -30,7 +30,7 @@ Example of usage.
|
||||
|
||||
This code snippet will generate block with function name and Magenta color:
|
||||
```cpp
|
||||
#include <profiler/profiler.h>
|
||||
#include <easy/profiler.h>
|
||||
|
||||
void frame() {
|
||||
EASY_FUNCTION(profiler::colors::Magenta); // Magenta block with name "frame"
|
||||
@ -43,7 +43,7 @@ To profile any block you may do this as following.
|
||||
You can specify these blocks also with Google material design colors or just set name of the block
|
||||
(in this case it will have default color which is `Amber100`):
|
||||
```cpp
|
||||
#include <profiler/profiler.h>
|
||||
#include <easy/profiler.h>
|
||||
|
||||
void frame() {
|
||||
// some code
|
||||
@ -64,7 +64,7 @@ void frame() {
|
||||
You can also use your own colors. easy_profiler is using standard 32-bit ARGB color format.
|
||||
Example:
|
||||
```cpp
|
||||
#include <profiler/profiler.h>
|
||||
#include <easy/profiler.h>
|
||||
|
||||
void foo() {
|
||||
EASY_FUNCTION(0xfff080aa); // Function block with custom color
|
||||
|
Loading…
x
Reference in New Issue
Block a user