Gprof

Gprof

Gprof est un logiciel GNU Binary Utilities qui permet d'effectuer du profilage de code.

Utilisation avec gcc

Lors de la compilation et de l'édition de liens d'un code source avec gcc, il suffit d'ajouter l'option -pg pour que, lors de son exécution, le programme génère un fichier gmon.out qui contiendra les informations de profilage.

Il suffit ensuite d'utiliser gprof pour lire ce fichier, en spécifiant les options.

Voir aussi

Liens


Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Gprof de Wikipédia en français (auteurs)

Игры ⚽ Нужна курсовая?

Regardez d'autres dictionnaires:

  • Performance analysis — In software engineering, performance analysis, more commonly today known as profiling, is the investigation of a program s behavior using information gathered as the program executes (i.e. it is a form of dynamic program analysis, as opposed to… …   Wikipedia

  • Profiling (computer programming) — In software engineering, profiling ( program profiling , software profiling ) is a form of dynamic program analysis that measures, for example, the usage of memory, the usage of particular instructions, or frequency and duration of function calls …   Wikipedia

  • List of performance analysis tools — This is a list of performance analysis tools for use in software development.Multiple languagesThe following tools work for multiple languages or binaries. * Valgrind is a GPL d system for debugging and profiling x86 Linux programs. You can… …   Wikipedia

  • List of important publications in computer science — This is a list of important publications in computer science, organized by field. Some reasons why a particular publication might be regarded as important: Topic creator – A publication that created a new topic Breakthrough – A publication that… …   Wikipedia

  • Call graph — A call graph (also known as a call multigraph) is a directed graph that represents calling relationships between subroutines in a computer program. Specifically, each node represents a procedure and each edge (f,g) indicates that procedure f… …   Wikipedia

  • GNU Compiler Collection — GNU Compiler Collection …   Википедия

  • Критический участок кода — У этого термина существуют и другие значения, см. Хот спот. Не следует путать с Критической секцией. Критический участок кода, или хот спот (от англ. hot spot  «горячее место» или «горячая точка»)  участок кода в программе,… …   Википедия

  • crt0 — (also known as c0) is a set of execution startup routines compiled into a program which perform any initialization work required before calling the program s main function. The work performed by crt0 depends on the program s language, compiler,… …   Wikipedia

  • Gcov — Тип Покрытие кода Операционная система Unix like Лицензия GNU General Public License Сайт gnu.org Gcov  бесплатная утилита для исследования …   Википедия

  • GNU Compiler Collection — Cc1 redirects here. For other uses of CC1 or CC 1, see CC1 (disambiguation). GNU Compiler Collection Developer(s) GNU Project Initial release May 23, 1987 ( …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”