MSDN > 論壇首頁 > Getting Started With Visual Studio Team System > TFS custom report on CODE PROFILING through Team build 2005
發問發問
 

已答覆TFS custom report on CODE PROFILING through Team build 2005

解答

  • Monday, 14 July, 2008 10:17Bill.WangMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    Hi Manjunath

     

    Welcome to MSDN forums.

     

    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.  The team build project file is extensible, you can add custom tasks or command to it.  And profiler can be invoked from command line.  The following are steps to do this.

     

    1. Install profiler on the build server as described in How to: Install the Stand-Alone Profiler.
    2. Check out the TFSBuild.proj which is the team build project file.
    3. Append command in the following form to run profiler. The <Target> element should be add as child of <Project> element which is the root.

      <Target Name="AfterCompile">

     <Exec Command="" />

     

     <Exec Command="" />

    </Target>

    Commands for running profiler are depending on your scenario, you can reference here. If your performance session are obtained from tests, you may also need to reference MSTest.exe Command-Line Options.

    1. Check in the TFSBuild.proj and queue a build. If everything is correct, performance report will be generated.

所有回覆

  • Monday, 14 July, 2008 10:17Bill.WangMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    Hi Manjunath

     

    Welcome to MSDN forums.

     

    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.  The team build project file is extensible, you can add custom tasks or command to it.  And profiler can be invoked from command line.  The following are steps to do this.

     

    1. Install profiler on the build server as described in How to: Install the Stand-Alone Profiler.
    2. Check out the TFSBuild.proj which is the team build project file.
    3. Append command in the following form to run profiler. The <Target> element should be add as child of <Project> element which is the root.

      <Target Name="AfterCompile">

     <Exec Command="" />

     

     <Exec Command="" />

    </Target>

    Commands for running profiler are depending on your scenario, you can reference here. If your performance session are obtained from tests, you may also need to reference MSTest.exe Command-Line Options.

    1. Check in the TFSBuild.proj and queue a build. If everything is correct, performance report will be generated.