Any way to specify the location of profile data

前端 未结 4 2069
青春惊慌失措
青春惊慌失措 2021-01-01 22:03

The default the profile file is from the executable is run and the file is called gmon.out. Is there any way to specify a new location?

I\'m using gcc 3

4条回答
  •  梦谈多话
    2021-01-01 23:01

    jscoot's solution worked for me, with the important difference of setting GMON_OUT_PREFIX at execution time, not at compile time.

提交回复
热议问题