By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,448 Members | 1,801 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,448 IT Pros & Developers. It's quick & easy.

Profiling VB.NET Application? Visual Studio Analyzer?

P: n/a

Does anyone know how to profile a VB.NET application?

In the VS.NET 2003 docs, I found this:


"A code profiler is a software tool, implemented as a DLL, which is
called by the runtime system during the execution of an image. The
profiler receives notifications each time a function is entered or
exited, as well as when other events occur that are of interest to the
programmer. By gathering statistics on these events, a profiler can
build a comprehensive picture of which routines used the most CPU
time, when garbage collections occurred, if exceptions were thrown,
and so on.

The runtime system connects a profiler to a process during process
initialization. To determine what to do, the runtime system checks two
environment variables: COR_ENABLE_PROFILING and COR_PROFILER.

If COR_ENABLE_PROFILING is absent or is set to the value 0, the
runtime system will not connect the process to the profiler.
Otherwise, the runtime system will connect the process to the profiler
whose specified class identifier (CLSID) is the value of COR_PROFILER.

For example, the command line causes the runtime system to create an
instance of the profiler COM class with this CLSID and connect it to
the process.

set Cor_Profiler={32E2F4DA-1BEA-47ea-88F9-C5DAF691C94A}
The profiler must implement the ICorProfilerCallback interface, which
the runtime system subsequently calls to apprise the profiler of
interesting events."

Does Visual Studio Analyzer perform this function? I see in the MSDN
docs how to start the "Visual Studio Analyzer Server Utility" from
the \Microsoft Visual Studio .NET 2003\Common7\Tools\Analyzer\1033

Do I have to use the VS Analyzer SDK and write my own profiler?

Thanks for any help!

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Chris Morse <ch***> scripsit:
Does anyone know how to profile a VB.NET application?

AFAIK there is no profiler included in VS.NET. Nevertheless, you can write one yourself:


Memory Profiler:


Herfried K. Wagner
MVP VB Classic, VB.NET
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.