easy_profiler icon indicating copy to clipboard operation
easy_profiler copied to clipboard

How to use easy_profiler without CMake

Open jtnydv opened this issue 9 years ago • 2 comments

I am working on very small cpp programs where I code and compile using command line using G++. I would like to see how my programs work and how much memory do they waste.

Is there a way to use the profiler without using CMake? If yes then please, care to explain how.

Thanks.

jtnydv avatar Apr 27 '17 10:04 jtnydv

You would have to replicate what CMake does. You can take a look at this file where i implemented absolute minimum required to build profiler lib and GUI tool. It is still CMake script but it is single file therefore it should be easier for you to reimplement it in whatever build system you need. It pretty much boils down to feeding source files and right definitions to compiler.

rokups avatar Apr 27 '17 12:04 rokups

@JatinYadav1307 also you can do something like this: g++ -I$EASY_PROFILER_SDK/include -L$EASY_PROFILER_SDK/bin -leasy_profiler -DBUILD_WITH_EASY_PROFILER main.cpp where $EASY_PROFILER_SDK is path to unzipped release. Do not forget set LD_LIBRARY_PATH to $EASY_PROFILER_SDK/bin in starting environment

yse avatar Apr 27 '17 12:04 yse