Hi,
I'd like to run my WinForms application through a series of tests and
determine where I can optimize my code. Is there an easy way for a brother
to tell which methods were called most frequently, or more importantly,
which methods took the largest fraction of CPU time to execute? This might
help me narrow down my focus a bit.
The only thing I can come up with is to use the DateTime class to
measure the number of "ticks" spent in each method -- but applying this
approach across hundreds of methods is insane. It occurs to me that perhaps
Visual Studio has an automated way of doing this. Any ideas?
You're the man,
Vincent 3 1360
Look up DevPartner Profiler Community Edition: http://www.compuware.com/products/de...er/default.asp
----
Adam Clauss
"Vincent Vega" <Pu**@Fiction.com> wrote in message
news:tM********************@giganews.com... Hi,
I'd like to run my WinForms application through a series of tests and determine where I can optimize my code. Is there an easy way for a brother to tell which methods were called most frequently, or more importantly, which methods took the largest fraction of CPU time to execute? This might help me narrow down my focus a bit.
The only thing I can come up with is to use the DateTime class to measure the number of "ticks" spent in each method -- but applying this approach across hundreds of methods is insane. It occurs to me that perhaps Visual Studio has an automated way of doing this. Any ideas?
You're the man,
Vincent
You may want to consider the "Free" CLR profiler from Microsoft. http://www.microsoft.com/downloads/d...displaylang=en
The CLR profiler only shows you memory allocations and garbage collections,
but it might prove useful to you.
--
Jorge L. Matos
"Adam Clauss" wrote: Look up DevPartner Profiler Community Edition: http://www.compuware.com/products/de...er/default.asp
---- Adam Clauss
"Vincent Vega" <Pu**@Fiction.com> wrote in message news:tM********************@giganews.com... Hi,
I'd like to run my WinForms application through a series of tests and determine where I can optimize my code. Is there an easy way for a brother to tell which methods were called most frequently, or more importantly, which methods took the largest fraction of CPU time to execute? This might help me narrow down my focus a bit.
The only thing I can come up with is to use the DateTime class to measure the number of "ticks" spent in each method -- but applying this approach across hundreds of methods is insane. It occurs to me that perhaps Visual Studio has an automated way of doing this. Any ideas?
You're the man,
Vincent
Just to clarify - that DevPartner one (community edition) is also free.
- Adam
"Jorge L Matos [MCSD.NET]" <matos_jorge_NOSPAM_AT_hotmail.com> wrote in
message news:51**********************************@microsof t.com... You may want to consider the "Free" CLR profiler from Microsoft.
http://www.microsoft.com/downloads/d...displaylang=en
The CLR profiler only shows you memory allocations and garbage collections, but it might prove useful to you.
-- Jorge L. Matos "Adam Clauss" wrote:
Look up DevPartner Profiler Community Edition: http://www.compuware.com/products/de...er/default.asp
---- Adam Clauss
"Vincent Vega" <Pu**@Fiction.com> wrote in message news:tM********************@giganews.com... > Hi, > > I'd like to run my WinForms application through a series of tests > and > determine where I can optimize my code. Is there an easy way for a > brother > to tell which methods were called most frequently, or more importantly, > which methods took the largest fraction of CPU time to execute? This > might > help me narrow down my focus a bit. > > The only thing I can come up with is to use the DateTime class to > measure the number of "ticks" spent in each method -- but applying this > approach across hundreds of methods is insane. It occurs to me that > perhaps Visual Studio has an automated way of doing this. Any ideas? > > You're the man, > > Vincent > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Charles Law |
last post by:
Hi guys
I have a time critical process, running on a worker thread. By "time
critical", I mean that certain parts of the process must be completed in a
specific time frame. The time when the...
|
by: fabio de francesco |
last post by:
Hi
what do you think of the following? Why are we permitted to do that?
And why the C++ Library doesn't stop someone willing to perfom that
assignement (*a = 20)?
#include <iostream>
...
|
by: for.fun |
last post by:
Hi everybody,
I am looking for a XML comparison tool (I do not mean a standard
char-by-char diff tool but a tool which understand XML syntax)
More precisely, I can have serveral XML...
|
by: Bart Goeman |
last post by:
Hi,
I have a question about how to put redundant information in data
structures, initialized at compile time. This is often necessary
for performance reasons and can't be done at run time (data...
|
by: Vincent Vega |
last post by:
Hi,
I'd like to run my WinForms application through a series of tests and
determine where I can optimize my code. Is there an easy way for a brother
to tell which methods were called most...
|
by: Jeremy |
last post by:
I have a core VB service that monitors a database, and based on data in the
records will execute code to send email notifications.
Problem:
I don't want my main program code to halt and wait for...
|
by: Banfa |
last post by:
I was mildly concerned when I saw else where on the forum on of our experts express the opinion that software design saw not required and their prefered design method of development was to just start...
|
by: dj |
last post by:
Hello again,
Does anyone know which method in the time module will generate and am
or pm ?
If none of the method will do this for me. Can I produce the value on
my own ?
Any suggestions ?
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |