s'il vous plaît expliquer avec l'exemple?Comment utiliser sprof?
Répondre
Des e-mails trouvé here et here, j'ai extrait les notes suivantes:
Compte tenu de la demande my_app', which links against a shared object
my_sobj », et a été compilé avec la -G compilation drapeau:
#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
Cela donne des informations de profil pour la bibliothèque partagée, pas pour my_app
cela fonctionne-t-il seulement pour les trucs de libc? Ou puis-je l'utiliser sur mes propres bibliothèques partagées compilées? – jdizzle
"aucun PLTREL trouvé dans l'objet" est l'erreur que j'obtiens en essayant de profiler ma propre bibliothèque. Que dois-je faire au moment de la compilation/liaison pour inclure les informations requises? – jdizzle
- 1. Comment: Utiliser MvcContrib.Pagination sans utiliser MvcContrib.Grid Voir
- 2. CIImage: Comment utiliser CIAffineTransform?
- 3. Comment utiliser IHTTPAsyncHandler?
- 4. JTidy Node.findBody() - Comment utiliser?
- 5. Comment utiliser les typelists
- 6. Comment utiliser Degrafa AutoShapes
- 7. Comment utiliser l'API rapidshare?
- 8. Comment utiliser YUI
- 9. Comment utiliser dataTable?
- 10. jQuery - comment utiliser stopPropagation()
- 11. Comment utiliser getActiveObject ("Excel.Application")
- 12. Comment utiliser RegEx?
- 13. Comment utiliser Window.OnClose
- 14. AT, RIL comment utiliser
- 15. Comment utiliser RewriteCond% N
- 16. Comment utiliser cronjob
- 17. Comment utiliser NTEventLogAppender?
- 18. Comment utiliser PerformanceCounterType AverageTimer32?
- 19. Comment utiliser DB2 Explain?
- 20. Comment utiliser Jquery contient?
- 21. Comment utiliser CWnd :: CreateEx
- 22. comment utiliser java stringtokenizer?
- 23. Comment utiliser CImageList
- 24. Comment utiliser stdext :: hash_map?
- 25. comment utiliser mod rewrite
- 26. Comment utiliser SDl_Threads correctement?
- 27. Comment utiliser Ant?
- 28. Comment utiliser www.addthis.com
- 29. Comment utiliser CAGradientLayer?
- 30. Comment utiliser django mptt?
voir http://stackoverflow.com/questions/1838989/gprof-how-to-generate-call-graph-for-functions-in-shared-library -that-est-lié/4959168 # 49591 68 – Dan