I'm trying to do some profiling using stack --enable-profiling
and I'm a bit confused about what's happening exactly.
Do I need to use also --enable-library
?.
Also, is it build in a separate directory ?What happend next I build it, will remember that am I in profiling mode or do I have to use the --enable-profiling
all the time.
It is generally recommended to profile in conjonction with the -O2
option. Does --enable-profiling
set it automatically ?