Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

Profiling tool for Vis C++?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
noleander - 01 Apr 2005 02:59 GMT
I've got Visual C++ 2003.  I'm looking for a profiling tool.  I'm from the
Unix world where a good profiler comes free and built into the compiler and
linker.  

I tried the Help utility in Visual C++ and got 500 hits for "profile" .. but
none of them indicated that a profiler is built-into Visual C++.

Question: Is there a profiler built into Visual C++ 2003?  If not, can any
one recommend a free profiler?

Thanks in advance for any help,
 neal
Carl Daniel [VC++ MVP] - 01 Apr 2005 06:30 GMT
> I've got Visual C++ 2003.  I'm looking for a profiling tool.  I'm
> from the Unix world where a good profiler comes free and built into
[quoted text clipped - 6 lines]
> Question: Is there a profiler built into Visual C++ 2003?  If not,
> can any one recommend a free profiler?

No.

Yes.

http://www.compuware.com/products/devpartner/profiler/default.asp?cid=3019X36&fo
cus=DevPartner&source=Web+%2D+Evaluation+Request&desc=Download+%2D+%27DevPartner
+Profiler+Community+Edition%27&offering=DevPartner&sf=1&p=0


(ghastly long URL - Compuware DevPartner Profilter, Community Edition can be
used free of charge with .NET 2003.  I've never used it myself).

-cd
Andre Kaufmann - 01 Apr 2005 06:33 GMT
> I've got Visual C++ 2003.  I'm looking for a profiling tool.  I'm from the
> Unix world where a good profiler comes free and built into the compiler and
[quoted text clipped - 5 lines]
> Question: Is there a profiler built into Visual C++ 2003?  If not, can any
> one recommend a free profiler?

VC6 had and VC 2005 will have (Team suite). There are not many "free"
profilers for VC. The only i know of is the profiler from compuware.
It´s free but you have to register to be able to download it.
I tried it, but it crashed when profiling a very complex project, though
for other projects it did well. You may give it a try,
or download the VC 2005 beta :-) - if you are a MSDN subscriber.

> Thanks in advance for any help,
>   neal

Andre
Duane Hebert - 01 Apr 2005 11:35 GMT
> VC6 had and VC 2005 will have (Team suite). There are not many "free"

Will the profiler for VC 2005 work with straight unmanaged c++ or just
with .Net?
Andre Kaufmann - 01 Apr 2005 18:32 GMT
>>VC6 had and VC 2005 will have (Team suite). There are not many "free"
>
> Will the profiler for VC 2005 work with straight unmanaged c++ or just
> with .Net?

I´ve only played around a bit with the profiler, so i cannot give you
that much and detailed information and since it´s a beta version the
information might not be reliable either.

But so far, *yes* - it also supports native c++.

Anyways i think that would be very restrictive, since the C++ compiler
is meant to be the tie between native and .NET code and is able to mix
them both.

There are various counter types that may be sampled, cache misses,
mispredicted branches, AMD64 specific ones, kernel - io access etc. but
couldn´t find out how to display them / profile them, maybe my beta
version hasn´t implemented the full profiler yet.

However, i´ve managed it to get a clock cycle profile for my test
program and i don´t think, that the counter type selection dialog has
been implement just for the fun of it ;-)

Andre
Duane Hebert - 01 Apr 2005 20:12 GMT
> I?ve only played around a bit with the profiler, so i cannot give you
> that much and detailed information and since it?s a beta version the
> information might not be reliable either.
>
> But so far, *yes* - it also supports native c++.

Thanks.  I've downloaded some demo profilers but some
seem to work only with managed stuff even though they
claim to work with straight c++.
Andre Kaufmann - 04 Apr 2005 05:54 GMT
>>I´ve only played around a bit with the profiler, so i cannot give you
>>that much and detailed information and since it´s a beta version the
[quoted text clipped - 5 lines]
> seem to work only with managed stuff even though they
> claim to work with straight c++.

Actually i´m looking at a (2) video from MSDN about the new
profiling capabilities of VS 2005, there should be enough
information about the builtin profiler to compare it with
other ones.

http://channel9.msdn.com/ShowForum.aspx?ForumID=14
Link #1 video: http://channel9.msdn.com/ShowPost.aspx?PostID=46208

Andre
Sukender - 01 Jul 2005 13:59 GMT
> VC6 had and VC 2005 will have (Team suite). There are not many "free"
> profilers for VC.

Does anyone knows why the Express version of VC 2005 don't have any profiler
? Even a simple text tool as unix/linux have (gprof) ?

I think even Express users may want to have a profiler : I often want to see
where is the slower part of my C++ (native) programs, and a the lack of
profiling tools in VC8 Express makes me mad. VCExpress is intented to be sold
$49 and I think that's enough to get a SIMPLE profiler (I'm not asking for a
very powerful tool).

Sukender
Jochen Kalmbach [MVP] - 01 Jul 2005 14:04 GMT
Hi Sukender!
> I think even Express users may want to have a profiler : I often want to see
> where is the slower part of my C++ (native) programs, and a the lack of
> profiling tools in VC8 Express makes me mad.

VC Express is primarily designed from managed development, therefor the
PSDK is also not shipped with this version. This might also be the
reason to remove the native profiler...

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/

Sukender - 01 Jul 2005 14:28 GMT
> VC Express is primarily designed from managed development

Thank you for you answer, Jochen.
But actually I thought Microsoft created Express versions to be more
competitive towards free and OpenSource IDEs and compilers for (native) C++.
I'm glad that MS  gave a good debugger (well that's my opinion), but
disappointed that no statndard tools like profiling tools were shipped with
VCExpress.

Sukender
Jason Felix - 01 Jul 2005 17:08 GMT
I'm agree with your opinion. And I think the express edition shoukd be free,
because I'm a student in high school with little money!

"Sukender" <Sukender@discussions.microsoft.com> дÈëÏûÏ¢ÐÂÎÅ:9859B987-8D29-4C39-8B51-EAF6B18FD3BB@microsoft.com...
>> VC Express is primarily designed from managed development
>
[quoted text clipped - 8 lines]
>
> Sukender
Carl Daniel [VC++ MVP] - 01 Jul 2005 17:50 GMT
> I'm agree with your opinion. And I think the express edition shoukd
> be free, because I'm a student in high school with little money!

Your high school should be able to get it through Microsoft's Acedemic
licensing programs for little or nothing.  Have someone there look into it.

-cd
Ioannis Vranos - 01 Apr 2005 09:31 GMT
> I've got Visual C++ 2003.  I'm looking for a profiling tool.  I'm from the
> Unix world where a good profiler comes free and built into the compiler and
[quoted text clipped - 5 lines]
> Question: Is there a profiler built into Visual C++ 2003?  If not, can any
> one recommend a free profiler?

Here is a nice free .NET profiler by Microsoft:

http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B7A
-94635BEEBDDA&displaylang=en


It displays time-costs and everything.

And two videos about how to use it:

http://www.microsoft.com/downloads/details.aspx?FamilyId=CD5AA57C-9CD1-45AB-AA4B
-8DC586D30938&displaylang=en

Ira Baxter - 02 Apr 2005 16:25 GMT
> I've got Visual C++ 2003.  I'm looking for a profiling tool.  I'm from the
> Unix world where a good profiler comes free and built into the compiler and
[quoted text clipped - 5 lines]
> Question: Is there a profiler built into Visual C++ 2003?  If not, can any
> one recommend a free profiler?

Not free, but if you can't find what you need for free:
http://www.semdesigns.com/Products/Profilers/CppProfiler.html

Signature

Ira D. Baxter, Ph.D., CTO   512-250-1018
Semantic Designs, Inc.      www.semdesigns.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.