How can I get perf to find symbols in my program

后端 未结 8 1604
醉梦人生
醉梦人生 2021-01-30 09:24

When using perf report, I don\'t see any symbols for my program, instead I get output like this:

$ perf record /path/to/racket ints.rkt 10000
$ pe         


        
8条回答
  •  不思量自难忘°
    2021-01-30 09:47

    You can always use the '$ nm ' command.

    here is some sample output:

    Ethans-MacBook-Pro:~ phyrrus9$ nm a.out
    0000000100000000 T __mh_execute_header
    0000000100000f30 T _main
                     U _printf
    0000000100000f00 T _sigint
                     U _signal
                     U dyld_stub_binder
    

提交回复
热议问题