Задайте вопросЗадайте вопрос
 

ОтвеченоTFS custom report on CODE PROFILING through Team build 2005

Ответы

  • 14 июля 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.

Все ответы

  • 14 июля 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.