mirror of
https://github.com/yse/easy_profiler.git
synced 2025-01-14 08:37:55 +08:00
16 lines
260 B
C++
16 lines
260 B
C++
#include "profiler/profiler.h"
|
|
|
|
int main()
|
|
{
|
|
|
|
//profiler::Block bl("sds");
|
|
|
|
//profiler::registerMark(&bl);
|
|
|
|
PROFILER_ENABLE;
|
|
PROFILER_BEGIN_BLOCK("block1");
|
|
PROFILER_ADD_MARK("mark1");
|
|
PROFILER_ADD_MARK_GROUPED("mark1",1);
|
|
PROFILER_DISABLE;
|
|
return 0;
|
|
} |