Measure method performance?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DC

    Measure method performance?

    Hi,

    I am looking for a simple performance benchmark, I need a report of
    how much time my methods need to execute - just to get an indication
    of where it is best to start optimizing the code. Of course I can
    benchmark every method by taking the start and stop time when the
    program enters and exits the method but maybe there is a tool out
    there to get this done in a more convenient fashion?

    Thanks for any hint,

    regards

    DC
  • Peter Bromberg [C# MVP]

    #2
    Re: Measure method performance?

    You might want to look into Compuware's DevParner Profiler. They have a free
    "Community Edition". This works as an addin integrated into the VS.NET IDE,
    and is pretty sophisticated.

    Look here:



    Peter
    "DC" <dc@upsize.de > wrote in message
    news:5b7bac12.0 402050929.5531a b85@posting.goo gle.com...[color=blue]
    > Hi,
    >
    > I am looking for a simple performance benchmark, I need a report of
    > how much time my methods need to execute - just to get an indication
    > of where it is best to start optimizing the code. Of course I can
    > benchmark every method by taking the start and stop time when the
    > program enters and exits the method but maybe there is a tool out
    > there to get this done in a more convenient fashion?
    >
    > Thanks for any hint,
    >
    > regards
    >
    > DC[/color]


    Comment

    • DC

      #3
      Re: Measure method performance?

      Very very cool. Thank you, Peter. Tried it and it is exactly what I
      was looking for, just I need a way to test a windows service with
      this, but that hopefully won't be much of a problem.

      Best regards

      DC

      "Peter Bromberg [C# MVP]" <pbromberg@yaho o.com> wrote in message news:<ORHlyxE7D HA.488@TK2MSFTN GP12.phx.gbl>.. .[color=blue]
      > You might want to look into Compuware's DevParner Profiler. They have a free
      > "Community Edition". This works as an addin integrated into the VS.NET IDE,
      > and is pretty sophisticated.
      >
      > Look here:
      >
      > http://www.compuware.com/products/de...evPartner&sf=1
      >
      > Peter
      > "DC" <dc@upsize.de > wrote in message
      > news:5b7bac12.0 402050929.5531a b85@posting.goo gle.com...[color=green]
      > > Hi,
      > >
      > > I am looking for a simple performance benchmark, I need a report of
      > > how much time my methods need to execute - just to get an indication
      > > of where it is best to start optimizing the code. Of course I can
      > > benchmark every method by taking the start and stop time when the
      > > program enters and exits the method but maybe there is a tool out
      > > there to get this done in a more convenient fashion?
      > >
      > > Thanks for any hint,
      > >
      > > regards
      > >
      > > DC[/color][/color]

      Comment

      Working...