I am using NS3.18 running on a redhat 4.4.6-4. I have gcc version 4.4.6. Recently, i added a new feature to my code and the simulation has become really slow.I want to use the gnuprof tool to check what part of the code is the cause of slow speed.
And when i try the command "gcc filename.cc -pg -o filename" i get a lot of errors stating many variables in the file have not been declared.
If i build with waf everything builds but i am unable to use gnuprof and when i try to compile with gcc giving -pg option i get errors.
Could you please tell me how i could use gnuprof with waf or how i could use gcc without getting the errors?
How can i enable profiling while comipiling my ns3.18 code?