<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- permission is obtained from the copyright holder. -->
|
<!-- permission is obtained from the copyright holder. -->
|
<HTML
|
<HTML
|
><HEAD
|
><HEAD
|
><TITLE
|
><TITLE
|
>Application profiling</TITLE
|
>Application profiling</TITLE
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
<META
|
<META
|
NAME="GENERATOR"
|
NAME="GENERATOR"
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
"><LINK
|
"><LINK
|
REL="HOME"
|
REL="HOME"
|
TITLE="eCos Reference Manual"
|
TITLE="eCos Reference Manual"
|
HREF="ecos-ref.html"><LINK
|
HREF="ecos-ref.html"><LINK
|
REL="PREVIOUS"
|
REL="PREVIOUS"
|
TITLE="CPU Load Measurements"
|
TITLE="CPU Load Measurements"
|
HREF="cpuload-functions.html"><LINK
|
HREF="cpuload-functions.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="Profiling functions"
|
TITLE="Profiling functions"
|
HREF="profile-functions.html"></HEAD
|
HREF="profile-functions.html"></HEAD
|
><BODY
|
><BODY
|
CLASS="PART"
|
CLASS="PART"
|
BGCOLOR="#FFFFFF"
|
BGCOLOR="#FFFFFF"
|
TEXT="#000000"
|
TEXT="#000000"
|
LINK="#0000FF"
|
LINK="#0000FF"
|
VLINK="#840084"
|
VLINK="#840084"
|
ALINK="#0000FF"
|
ALINK="#0000FF"
|
><DIV
|
><DIV
|
CLASS="NAVHEADER"
|
CLASS="NAVHEADER"
|
><TABLE
|
><TABLE
|
SUMMARY="Header navigation table"
|
SUMMARY="Header navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TH
|
><TH
|
COLSPAN="3"
|
COLSPAN="3"
|
ALIGN="center"
|
ALIGN="center"
|
>eCos Reference Manual</TH
|
>eCos Reference Manual</TH
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="cpuload-functions.html"
|
HREF="cpuload-functions.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="80%"
|
WIDTH="80%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="profile-functions.html"
|
HREF="profile-functions.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"></DIV
|
WIDTH="100%"></DIV
|
><DIV
|
><DIV
|
CLASS="PART"
|
CLASS="PART"
|
><A
|
><A
|
NAME="SERVICES-PROFILE-GPROF"><DIV
|
NAME="SERVICES-PROFILE-GPROF"><DIV
|
CLASS="TITLEPAGE"
|
CLASS="TITLEPAGE"
|
><H1
|
><H1
|
CLASS="TITLE"
|
CLASS="TITLE"
|
>XX. Application profiling</H1
|
>XX. Application profiling</H1
|
><DIV
|
><DIV
|
CLASS="PARTINTRO"
|
CLASS="PARTINTRO"
|
><A
|
><A
|
NAME="AEN15538"><P
|
NAME="AEN15538"><P
|
>The profile_gprof package provides a mechanism to measure the
|
>The profile_gprof package provides a mechanism to measure the
|
runtime performance of an application. This is done by gathering
|
runtime performance of an application. This is done by gathering
|
an execution histogram.</P
|
an execution histogram.</P
|
><P
|
><P
|
>When profiling is started on the target device, a
|
>When profiling is started on the target device, a
|
<TT
|
<TT
|
CLASS="FUNCTION"
|
CLASS="FUNCTION"
|
>TFTP</TT
|
>TFTP</TT
|
>
|
>
|
server will be started
|
server will be started
|
which exports the single file
|
which exports the single file
|
<TT
|
<TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>PROFILE.DAT</TT
|
>PROFILE.DAT</TT
|
>
|
>
|
This analysis data can then be fetched
|
This analysis data can then be fetched
|
by connecting to the target with a <TT
|
by connecting to the target with a <TT
|
CLASS="FUNCTION"
|
CLASS="FUNCTION"
|
>TFTP</TT
|
>TFTP</TT
|
>
|
>
|
client program
|
client program
|
and then be processed by the
|
and then be processed by the
|
<TT
|
<TT
|
CLASS="FUNCTION"
|
CLASS="FUNCTION"
|
>gprof</TT
|
>gprof</TT
|
>
|
>
|
utility program.
|
utility program.
|
<DIV
|
<DIV
|
CLASS="NOTE"
|
CLASS="NOTE"
|
><BLOCKQUOTE
|
><BLOCKQUOTE
|
CLASS="NOTE"
|
CLASS="NOTE"
|
><P
|
><P
|
><B
|
><B
|
>NOTE: </B
|
>NOTE: </B
|
>Be sure and specify binary mode transfers for this data file,
|
>Be sure and specify binary mode transfers for this data file,
|
which may not be the default with on some <TT
|
which may not be the default with on some <TT
|
CLASS="FUNCTION"
|
CLASS="FUNCTION"
|
>TFTP</TT
|
>TFTP</TT
|
>
|
>
|
client programs.</P
|
client programs.</P
|
></BLOCKQUOTE
|
></BLOCKQUOTE
|
></DIV
|
></DIV
|
>
|
>
|
<DIV
|
<DIV
|
CLASS="NOTE"
|
CLASS="NOTE"
|
><BLOCKQUOTE
|
><BLOCKQUOTE
|
CLASS="NOTE"
|
CLASS="NOTE"
|
><P
|
><P
|
><B
|
><B
|
>NOTE: </B
|
>NOTE: </B
|
>The port used for this <TT
|
>The port used for this <TT
|
CLASS="FUNCTION"
|
CLASS="FUNCTION"
|
>TFTP</TT
|
>TFTP</TT
|
> server is
|
> server is
|
configurable. The default will be the IETF standard port
|
configurable. The default will be the IETF standard port
|
of 69/UDP, but it may be changed to any UDP port via the
|
of 69/UDP, but it may be changed to any UDP port via the
|
<TT
|
<TT
|
CLASS="LITERAL"
|
CLASS="LITERAL"
|
>CYGNUM_PROFILE_TFTP_PORT</TT
|
>CYGNUM_PROFILE_TFTP_PORT</TT
|
> CDL option.</P
|
> CDL option.</P
|
></BLOCKQUOTE
|
></BLOCKQUOTE
|
></DIV
|
></DIV
|
></P
|
></P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="TOC"
|
CLASS="TOC"
|
><DL
|
><DL
|
><DT
|
><DT
|
><B
|
><B
|
>Table of Contents</B
|
>Table of Contents</B
|
></DT
|
></DT
|
><DT
|
><DT
|
>52. <A
|
>52. <A
|
HREF="profile-functions.html"
|
HREF="profile-functions.html"
|
>Profiling functions</A
|
>Profiling functions</A
|
></DT
|
></DT
|
></DL
|
></DL
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="NAVFOOTER"
|
CLASS="NAVFOOTER"
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"><TABLE
|
WIDTH="100%"><TABLE
|
SUMMARY="Footer navigation table"
|
SUMMARY="Footer navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="cpuload-functions.html"
|
HREF="cpuload-functions.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="ecos-ref.html"
|
HREF="ecos-ref.html"
|
ACCESSKEY="H"
|
ACCESSKEY="H"
|
>Home</A
|
>Home</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="profile-functions.html"
|
HREF="profile-functions.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
>CPU Load Measurements</TD
|
>CPU Load Measurements</TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
> </TD
|
> </TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
>Profiling functions</TD
|
>Profiling functions</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|