Every time I run a program, or exit a shell. There will be a "gmon.out" file generated at the working directory. How to stop this behavior?
Asked
Active
Viewed 3,381 times
2 Answers
3
I have just compiled emacs 24.5 and it creates "gmon.out" file while exits.
No one option to configure (except of --without-all) helped.
This is what helps if no resorting to the --without-all:
In the file "configure.ac" replace line
PROFILING_CFLAGS="-DPROFILING=1 -pg"with the following
PROFILING_CFLAGS="-DPROFILING=0 -pg"- Create new "configure" by running command
autoconf. - Use new "configure" for compilation, as usual.
Ahmed Ashour
- 2,490
Alexander
- 31
2
If this is being generated in each and every directory, most probably, your base python was installed with the --enable-profiling flag. You can confirm this using:
Python 3:
python3 -m sysconfig -c 'print(sysconfig.get_config_var("CONFIG_ARGS"))'
Python 2:
python2 -c "import distutils.sysconfig; print distutils.sysconfig.get_config_vars()"
Recompiling the same without profiling should resolve the problem.
hjpotter92
- 752