Microsoft 开发人员网络 > 论坛主页 > 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

答案

  • 2008年7月14日 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.

全部回复

  • 2008年7月14日 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.