📄 services-profile-gprof.html
字号:
<!-- Copyright (C) 2003 Red Hat, Inc. --><!-- This material may be distributed only subject to the terms --><!-- and conditions set forth in the Open Publication License, v1.0 --><!-- or later (the latest version is presently available at --><!-- http://www.opencontent.org/openpub/). --><!-- Distribution of the work or derivative of the work in any --><!-- standard (paper) book form is prohibited unless prior --><!-- permission is obtained from the copyright holder. --><HTML><HEAD><TITLE>Application profiling</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="PREVIOUS"TITLE="CPU Load Measurements"HREF="cpuload-functions.html"><LINKREL="NEXT"TITLE="Profiling functions"HREF="profile-functions.html"></HEAD><BODYCLASS="PART"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="cpuload-functions.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="profile-functions.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="PART"><ANAME="SERVICES-PROFILE-GPROF"><DIVCLASS="TITLEPAGE"><H1CLASS="TITLE">XX. Application profiling</H1><DIVCLASS="PARTINTRO"><ANAME="AEN15538"><P>The profile_gprof package provides a mechanism to measure theruntime performance of an application. This is done by gatheringan execution histogram.</P><P>When profiling is started on the target device, a <TTCLASS="FUNCTION">TFTP</TT> server will be startedwhich exports the single file<TTCLASS="FILENAME">PROFILE.DAT</TT>This analysis data can then be fetchedby connecting to the target with a <TTCLASS="FUNCTION">TFTP</TT> client programand then be processed by the <TTCLASS="FUNCTION">gprof</TT>utility program.<DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>NOTE: </B>Be sure and specify binary mode transfers for this data file,which may not be the default with on some <TTCLASS="FUNCTION">TFTP</TT>client programs.</P></BLOCKQUOTE></DIV><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>NOTE: </B>The port used for this <TTCLASS="FUNCTION">TFTP</TT> server isconfigurable. The default will be the IETF standard portof 69/UDP, but it may be changed to any UDP port via the<TTCLASS="LITERAL">CYGNUM_PROFILE_TFTP_PORT</TT> CDL option.</P></BLOCKQUOTE></DIV></P></DIV><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT>52. <AHREF="profile-functions.html">Profiling functions</A></DT></DL></DIV></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="cpuload-functions.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="profile-functions.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">CPU Load Measurements</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"> </TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Profiling functions</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -