gpt4 book ai didi

linux - 如何使用sprof?

转载 作者:IT王子 更新时间:2023-10-29 00:31:51 30 4
gpt4 key购买 nike

请举例说明?

最佳答案

从找到的电子邮件中herehere ,我提取了以下注释:

给定一个应用程序my_app',它链接到一个共享对象my_sobj',并且已经使用'-g'编译标志编译:

#set the environment variable LD_PROFILE to the name of the shared obj
export LD_PROFILE=my_obj
#run your application
my_app
#this should create a file /var/tmp/my_sobj.profile
#now run sprof
sprof my_sobj my_sobj.profile

这给出了共享库的配置文件信息,而不是 my_app

关于linux - 如何使用sprof?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/881074/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com