profile each line of code

"Cameron Miller" <Cameron.Miller-bRZwBr/[email protected]> Thu, 6 Jan 2005 12:16:22 +1000
Newsgroups gmane.comp.windows.dotnet.nprof.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4F395.B79E15EB
Content-Type: text/plain;
	charset="windows-1250"
Content-Transfer-Encoding: quoted-printable

nprof:

=20

I=92m currently playing with the 0.9 release and discovered that nprof =
is not reporting a vital piece of information for diagnosing performance =
problems.

The tool provides a method=92s profiling summary, but my issues is that =
it doesn=92t provide feedback for each source line within the method. =
I.e. =93How long does each line of code take to execute?=94=20

Further granularity by giving profiling feedback at the IL level might =
also be useful, but I=92d consider it a secondary request.

=20

Regards

=20




*

Cameron Miller
Research and Development Software Engineer
Shortcuts Software
HYPERLINK =
"BLOCKED::mailto:cameron.miller-bRZwBr/[email protected]"cameron.miller@shortcuts=
.com.au
HYPERLINK "BLOCKED::http://www.shortcuts.com.au/" =
\nhttp://www.shortcuts.com.au

*

P.O BOX 763 Spring Hill QLD 4004=20
AUSTRALIA

Office: +61 (0)7 3834 3211
Fax: +61 (0)7 3831 7844



This email and any files transmitted with it are confidential and =
intended solely for the entity to whom they are addressed. If you are =
not the intended recipient, you are notified that any use, =
dissemination, or copying of this message or data is prohibited. If you =
have received this e-mail in error please notify the sender immediately =
and delete all message material. Any views expressed in this message are =
those of the individual sender and may not be the views of Shortcuts =
Software, unless specifically stated.=20

Shortcuts Software has implemented anti-virus software, and whilst all =
care is taken, it is the recipient's responsibility to ensure that any =
attachments are scanned for viruses prior to use.

=20

=20


--=20
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.8 - Release Date: 3/01/2005
=20

------_=_NextPart_001_01C4F395.B79E15EB
Content-Type: text/html;
	charset="windows-1250"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1250">


<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"country-region"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-AU link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>nprof:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;m currently playing with the 0.9 release and
discovered that nprof is not reporting a vital piece of information for
diagnosing performance problems.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The tool provides a method&#8217;s profiling summary, =
but my
issues is that it doesn&#8217;t provide feedback for each source line =
within
the method. I.e. &#8220;How long does each line of code take to =
execute?&#8221;
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Further granularity by giving profiling feedback at =
the IL
level might also be useful, but I&#8217;d consider it a secondary =
request.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Regards<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<table class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
width=3D"95%"
 style=3D'width:95.0%'>
 <tr height=3D93 style=3D'height:69.7pt'>
  <td height=3D93 style=3D'padding:0cm 0cm 0cm 0cm;height:69.7pt'>
  <table class=3DMsoNormalTable border=3D0 cellspacing=3D1 =
cellpadding=3D0 width=3D617
   bgcolor=3D"#CCCCCC" style=3D'width:462.75pt;background:#CCCCCC'>
   <tr>
    <td bgcolor=3D"#EEEEEE" style=3D'background:#EEEEEE;padding:.75pt =
.75pt .75pt .75pt'>
    <table class=3DMsoNormalTable border=3D0 cellspacing=3D3 =
cellpadding=3D0
     width=3D"100%" style=3D'width:100.0%'>
     <tr>
      <td width=3D"2%" nowrap valign=3Dtop bgcolor=3D"#CCCCCC" =
style=3D'width:2.0%;
      background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
      <p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
      auto'><font size=3D5 color=3D"#990000" face=3DWingdings><span =
style=3D'font-size:
      =
18.0pt;font-family:Wingdings;color:#990000'>&icirc;</span></font><o:p></o=
:p></p>
      </td>
      <td width=3D"45%" nowrap valign=3Dtop =
style=3D'width:45.0%;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
      <p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
      auto'><strong><b><font size=3D2 color=3Dnavy face=3DVerdana><span
      style=3D'font-size:10.0pt;font-family:Verdana;color:navy'>Cameron =
Miller</span></font></b></strong><font
      size=3D2 color=3Dnavy face=3DVerdana><span =
style=3D'font-size:10.0pt;font-family:
      Verdana;color:navy'><br>
      Research and Development Software Engineer<br>
      Shortcuts Software<br>
      <a href=3D"BLOCKED::mailto:cameron.miller-bRZwBr/[email protected]"
      =
title=3D"mailto:cameron.miller-bRZwBr/[email protected]&#10;mailto:nicholas.blumh=
ardt-bRZwBr/[email protected]"><b><span
      title=3D"mailto:cameron.miller-bRZwBr/[email protected]"><span =
style=3D'font-weight:
      bold'>cameron.miller-bRZwBr/[email protected]</span></span></b></a><br>
      <a href=3D"BLOCKED::http://www.shortcuts.com.au/" =
target=3D"_blank"
      title=3D"http://www.shortcuts.com.au/"><b><span
      title=3D"http://www.shortcuts.com.au/"><span =
style=3D'font-weight:bold'>http://www.shortcuts.com.au</span></span></b><=
/a></span></font><o:p></o:p></p>
      </td>
      <td width=3D"2%" nowrap valign=3Dtop bgcolor=3D"#CCCCCC" =
style=3D'width:2.0%;
      background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
      <p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
      auto'><font size=3D5 color=3Dwhite face=3DWingdings><span =
style=3D'font-size:
      =
18.0pt;font-family:Wingdings;color:white'>&icirc;</span></font><o:p></o:p=
></p>
      </td>
      <td width=3D"45%" nowrap valign=3Dtop =
style=3D'width:45.0%;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
      <p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
      auto'><font size=3D2 color=3Dnavy face=3DVerdana><span =
style=3D'font-size:10.0pt;
      font-family:Verdana;color:navy'>P.O BOX 763 Spring Hill QLD 4004 =
<br>
<st1:country-region w:st=3D"on"><st1:place =
w:st=3D"on">AUSTRALIA</st1:place></st1:country-region><br>
      <br>
      Office: +61 (0)7 3834 3211<br>
      Fax: +61 (0)7 3831 7844</span></font><o:p></o:p></p>
      </td>
     </tr>
    </table>
    <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span
    style=3D'font-size:12.0pt'><o:p></o:p></span></font></p>
    </td>
   </tr>
  </table>
  <p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
  size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
 </tr>
 <tr height=3D43 style=3D'height:31.9pt'>
  <td height=3D43 style=3D'padding:0cm 0cm 0cm 0cm;height:31.9pt'>
  <p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
  size=3D1 color=3Dnavy face=3DVerdana><span =
style=3D'font-size:7.5pt;font-family:Verdana;
  color:navy'><br>
  This email and any files transmitted with it are confidential and =
intended
  solely for the entity to whom they are addressed. If you are not the =
intended
  recipient, you are notified that any use, dissemination, or copying of =
this
  message or data is prohibited. If you have received this e-mail in =
error
  please notify the sender immediately and delete all message material. =
Any
  views expressed in this message are those of the individual sender and =
may
  not be the views of Shortcuts Software, unless specifically stated. =
</span></font><o:p></o:p></p>
  <p><font size=3D1 color=3Dnavy face=3DVerdana><span =
style=3D'font-size:7.5pt;
  font-family:Verdana;color:navy'>Shortcuts Software has implemented =
anti-virus
  software, and whilst all care is taken, it is the recipient's =
responsibility
  to ensure that any attachments are scanned for viruses prior to =
use.</span></font><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>&nbsp;</span><o:p></o:p></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>
<BR>

<P><FONT SIZE=3D2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Anti-Virus.<BR>
Version: 7.0.300 / Virus Database: 265.6.8 - Release Date: 3/01/2005<BR>
</FONT> </P>

------_=_NextPart_001_01C4F395.B79E15EB--


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt