How to use easy_profiler without CMake
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.
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.
@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