TFS custom report on CODE PROFILING through Team build 2005<p align=left><font face=Arial size=2></font> </p> <p align=left><font face=Arial size=2>I want to genereate a TFS custom report  on code profiling .</font></p> <p align=left>Is code profiling can be done through Team Build 2005 ? </p>© 2009 Microsoft Corporation. All rights reserved.Wed, 08 Oct 2008 22:37:56 Z46a5805a-e015-440d-8354-e437b70a45cchttp://social.msdn.microsoft.com/Forums/en-US/vstsstart/thread/46a5805a-e015-440d-8354-e437b70a45cc#46a5805a-e015-440d-8354-e437b70a45cchttp://social.msdn.microsoft.com/Forums/en-US/vstsstart/thread/46a5805a-e015-440d-8354-e437b70a45cc#46a5805a-e015-440d-8354-e437b70a45ccManjunath Kashyaphttp://social.msdn.microsoft.com/Profile/en-US/?user=Manjunath%20KashyapTFS custom report on CODE PROFILING through Team build 2005<p align=left><font face=Arial size=2></font> </p> <p align=left><font face=Arial size=2>I want to genereate a TFS custom report  on code profiling .</font></p> <p align=left>Is code profiling can be done through Team Build 2005 ? </p>Thu, 10 Jul 2008 10:00:50 Z2008-07-15T10:34:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsstart/thread/46a5805a-e015-440d-8354-e437b70a45cc#f383d37b-8c06-4a02-8157-3c08d927c8d7http://social.msdn.microsoft.com/Forums/en-US/vstsstart/thread/46a5805a-e015-440d-8354-e437b70a45cc#f383d37b-8c06-4a02-8157-3c08d927c8d7Bill.Wanghttp://social.msdn.microsoft.com/Profile/en-US/?user=Bill.WangTFS custom report on CODE PROFILING through Team build 2005<p align=left><font face=Arial size=2>Hi Manjunath</font></p> <p align=left><font face=Arial size=2> </p> <p style="font-size:11pt;margin:0in;font-family:Calibri">Welcome to MSDN forums. </p> <p style="font-size:11pt;margin:0in;font-family:Calibri" align=left> </p> <p style="font-size:11pt;margin:0in;font-family:Calibri" align=left>In the team build, source code are complied in the build server. If your performance session requires no user interactions, you can get performance report by extending the team build project file.<span style="">  </span>The team build project file is extensible, you can add custom tasks or command to it.<span style="">  </span>And profiler can be invoked from command line.<span style="">  </span>The following are steps to do this.</p> <p style="font-size:11pt;margin:0in 0in 0in 0.375in;font-family:Calibri"> </p> <ol style="margin-top:0in;font-size:11pt;margin-bottom:0in;margin-left:0.375in;direction:ltr;font-family:Calibri;unicode-bidi:embed" type=1> <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle" value=1><span style="font-size:11pt;font-family:Calibri">Install profiler on the build server as described in <a title="http://msdn.microsoft.com/en-us/library/bb385771.aspx" href="http://msdn.microsoft.com/en-us/library/bb385771.aspx">How to: Install the Stand-Alone Profiler</a>.</span> <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle" value=2><span style="font-size:11pt;font-family:Calibri">Check out the TFSBuild.proj which is the team build project file.</span> <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle" value=3><span style="font-size:11pt;font-family:Calibri">Append command in the following form to run profiler. The &lt;Target&gt; element should be add as child of &lt;Project&gt; element which is the root.</span></li></ol> <p lang=zh-CN style="font-size:11pt;margin:0in 0in 0in 0.375in;font-family:Calibri"><span style="">  </span>&lt;Target Name=&quot;AfterCompile&quot;&gt;</p> <p style="font-size:11pt;margin:0in 0in 0in 0.375in;font-family:Calibri"><span lang=zh-CN><span style=""> </span>&lt;Exec Command=&quot;</span><span lang=en-US>&quot;</span><span lang=zh-CN> /&gt;</span></p> <p style="font-size:11pt;margin:0in 0in 0in 0.375in;font-family:Calibri"><span style=""> </span>…</p> <p style="font-size:11pt;margin:0in 0in 0in 0.375in;font-family:Calibri"><span lang=en-US><span style=""> </span></span><span lang=zh-CN>&lt;Exec Command=&quot;</span><span lang=en-US>&quot;</span><span lang=zh-CN> /&gt;</span></p> <p lang=zh-CN style="font-size:11pt;margin:0in 0in 0in 0.375in;font-family:Calibri">&lt;/Target&gt;</p> <p style="font-size:11pt;margin:0in 0in 0in 0.375in;font-family:Calibri">Commands for running profiler are depending on your scenario, you can reference <a title="http://msdn.microsoft.com/en-us/library/ms182401(VS.80).aspx" href="http://msdn.microsoft.com/en-us/library/ms182401(VS.80).aspx">here</a>. If your performance session are obtained from tests, you may also need to reference <a title="http://msdn.microsoft.com/en-us/library/ms182489(VS.80).aspx" href="http://msdn.microsoft.com/en-us/library/ms182489(VS.80).aspx">MSTest.exe Command-Line Options</a>.</p> <ol style="margin-top:0in;font-size:11pt;margin-bottom:0in;margin-left:0.375in;direction:ltr;font-family:Calibri;unicode-bidi:embed" type=1> <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle" value=4><span style="font-size:11pt;font-family:Calibri">Check in the TFSBuild.proj and queue a build. If everything is correct, performance report will be generated.</span></li></ol></font>Mon, 14 Jul 2008 10:17:27 Z2008-07-15T10:34:54Z