Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / html / python / lib / profile.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="lib.css" type='text/css' />
<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index' />
<link rel="first" href="lib.html" title='Python Library Reference' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="internet.html" />
<link rel="prev" href="module-pdb.html" />
<link rel="parent" href="lib.html" />
<link rel="next" href="node450.html" />
<meta name='aesop' content='information' />
<title>10. The Python Profiler </title>
</head>
<body>
<DIV CLASS="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="9.2 How It Works"
href="debugger-hooks.html"><img src='../icons/previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="Python Library Reference"
href="lib.html"><img src='../icons/up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="10.1 Introduction to the"
href="node450.html"><img src='../icons/next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
href="contents.html"><img src='../icons/contents.png'
border='0' height='32' alt='Contents' width='32' /></A></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
border='0' height='32' alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
href="genindex.html"><img src='../icons/index.png'
border='0' height='32' alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="debugger-hooks.html">9.2 How It Works</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="node450.html">10.1 Introduction to the</A>
</div>
<hr /></div>
</DIV>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION0012000000000000000000"></A><A NAME="profile"></A>
<BR>
10. The Python Profiler
</H1>
<P>
<P>
Copyright &#169; 1994, by InfoSeek Corporation, all rights reserved.
<a id='l2h-3105' xml:id='l2h-3105'></a>
<P>
Written by James Roskind.<A NAME="tex2html50"
HREF="#foot46120"><SUP>10.1</SUP></A>
<P>
Permission to use, copy, modify, and distribute this Python software
and its associated documentation for any purpose (subject to the
restriction in the following sentence) without fee is hereby granted,
provided that the above copyright notice appears in all copies, and
that both that copyright notice and this permission notice appear in
supporting documentation, and that the name of InfoSeek not be used in
advertising or publicity pertaining to distribution of the software
without specific, written prior permission. This permission is
explicitly restricted to the copying and modification of the software
to remain in Python, compiled Python, or other languages (such as C)
wherein the modified or derived code is exclusively imported into a
Python module.
<P>
INFOSEEK CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL INFOSEEK CORPORATION BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
<P>
The profiler was written after only programming in Python for 3 weeks.
As a result, it is probably clumsy code, but I don't know for sure yet
'cause I'm a beginner :-). I did work hard to make the code run fast,
so that profiling would be a reasonable thing to do. I tried not to
repeat code fragments, but I'm sure I did some stuff in really awkward
ways at times. Please send suggestions for improvements to:
<span class="email">jar@netscape.com</span>. I won't promise <em>any</em> support. ...but
I'd appreciate the feedback.
<P>
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot46120">... Roskind.</A><A
href="profile.html#tex2html50"><SUP>10.1</SUP></A></DT>
<DD>
Updated and converted to <span class="LaTeX">LaTeX</span> by Guido van Rossum. The references to
the old profiler are left in the text, although it no longer exists.
</DD>
</DL>
<p><br /></p><hr class='online-navigation' />
<div class='online-navigation'>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>
<UL CLASS="ChildLinks">
<LI><A href="node450.html">10.1 Introduction to the profiler</a>
<LI><A href="node451.html">10.2 How Is This Profiler Different From The Old Profiler?</a>
<LI><A href="profile-instant.html">10.3 Instant Users Manual</a>
<LI><A href="node453.html">10.4 What Is Deterministic Profiling?</a>
<LI><A href="module-profile.html">10.5 Reference Manual</a>
<UL>
<LI><A href="profile-stats.html">10.5.1 The <tt class="class">Stats</tt> Class</a>
</ul>
<LI><A href="profile-limits.html">10.6 Limitations</a>
<LI><A href="profile-calibration.html">10.7 Calibration</a>
<LI><A href="node458.html">10.8 Extensions -- Deriving Better Profilers</a>
<LI><A href="module-hotshot.html">10.9 <tt class="module">hotshot</tt> --
High performance logging profiler</a>
<UL>
<LI><A href="hotshot-objects.html">10.9.1 Profile Objects</a>
<LI><A href="module-hotshot.stats.html">10.9.2 Using hotshot data</a>
<LI><A href="hotshot-example.html">10.9.3 Example Usage</a>
</ul>
<LI><A href="module-timeit.html">10.10 <tt class="module">timeit</tt> --
Measure execution time of small code snippets</a>
<UL>
<LI><A href="node464.html">10.10.1 Command Line Interface</a>
<LI><A href="node465.html">10.10.2 Examples</a>
</ul></ul>
<!--End of Table of Child-Links-->
</div>
<DIV CLASS="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="9.2 How It Works"
href="debugger-hooks.html"><img src='../icons/previous.png'
border='0' height='32' alt='Previous Page' width='32' /></A></td>
<td class='online-navigation'><a rel="parent" title="Python Library Reference"
href="lib.html"><img src='../icons/up.png'
border='0' height='32' alt='Up One Level' width='32' /></A></td>
<td class='online-navigation'><a rel="next" title="10.1 Introduction to the"
href="node450.html"><img src='../icons/next.png'
border='0' height='32' alt='Next Page' width='32' /></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
href="contents.html"><img src='../icons/contents.png'
border='0' height='32' alt='Contents' width='32' /></A></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
border='0' height='32' alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
href="genindex.html"><img src='../icons/index.png'
border='0' height='32' alt='Index' width='32' /></A></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="debugger-hooks.html">9.2 How It Works</A>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="node450.html">10.1 Introduction to the</A>
</div>
</div>
<hr />
<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>