Profiling in Visual C++ Express

Discussion of chess software programming and technical issues.

Moderator: Ras

jdart
Posts: 4408
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Profiling in Visual C++ Express

Post by jdart »

As another poster mentioned AMD has a free tool for download (http://developer.amd.com/cpu/codeanalys ... fault.aspx). I tried this and it does produce interesting reports. Integrates nicely with VC++ too.
Richard Allbert
Posts: 794
Joined: Wed Jul 19, 2006 9:58 am

Re: Profiling in Visual C++ Express

Post by Richard Allbert »

I'll give it a try, thanks :)
User avatar
pedrox
Posts: 1056
Joined: Fri Mar 10, 2006 6:07 am
Location: Basque Country (Spain)

Re: Profiling in Visual C++ Express

Post by pedrox »

jdart wrote:As another poster mentioned AMD has a free tool for download (http://developer.amd.com/cpu/codeanalys ... fault.aspx). I tried this and it does produce interesting reports. Integrates nicely with VC++ too.
There are some manual quick to use codeanalyst?

I would like to know % of the time used for each function of the program to find bottlenecks.

Pedro
Tony

Re: Profiling in Visual C++ Express

Post by Tony »

pedrox wrote:
jdart wrote:As another poster mentioned AMD has a free tool for download (http://developer.amd.com/cpu/codeanalys ... fault.aspx). I tried this and it does produce interesting reports. Integrates nicely with VC++ too.
There are some manual quick to use codeanalyst?

I would like to know % of the time used for each function of the program to find bottlenecks.

Pedro
Run it and read the output ?

If you need a manual for this ( or rather: ask before trying), you might want to reconsider taking chessprogramming as a hobby.

Tony
jdart
Posts: 4408
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Profiling in Visual C++ Express

Post by jdart »

There is a manual - just go to the download page and look for:

CodeAnalyst for Windows Documentation


--Jon
User avatar
pedrox
Posts: 1056
Joined: Fri Mar 10, 2006 6:07 am
Location: Basque Country (Spain)

Re: Profiling in Visual C++ Express

Post by pedrox »

Tony wrote:
pedrox wrote:
jdart wrote:As another poster mentioned AMD has a free tool for download (http://developer.amd.com/cpu/codeanalys ... fault.aspx). I tried this and it does produce interesting reports. Integrates nicely with VC++ too.
There are some manual quick to use codeanalyst?

I would like to know % of the time used for each function of the program to find bottlenecks.

Pedro
Run it and read the output ?

If you need a manual for this ( or rather: ask before trying), you might want to reconsider taking chessprogramming as a hobby.

Tony
I suppose that the next version of your program will play better than Rybka 3.0, otherwise I do not understand your comment.

In addition, you confuse speed with bacon, as it does not need to use a tool as codeanalyst to build an engine, I am sure that more than half of the programmers do not use a tool as it is.

My problem with this tool is that I've tried to use it on Virtual PC and after that I did not get the name of the functions, but your reply not served me a lot.
User avatar
pedrox
Posts: 1056
Joined: Fri Mar 10, 2006 6:07 am
Location: Basque Country (Spain)

Re: Profiling in Visual C++ Express

Post by pedrox »

jdart wrote:There is a manual - just go to the download page and look for:

CodeAnalyst for Windows Documentation


--Jon
Thx
Tony

Re: Profiling in Visual C++ Express

Post by Tony »

pedrox wrote:
Tony wrote:
pedrox wrote:
jdart wrote:As another poster mentioned AMD has a free tool for download (http://developer.amd.com/cpu/codeanalys ... fault.aspx). I tried this and it does produce interesting reports. Integrates nicely with VC++ too.
There are some manual quick to use codeanalyst?

I would like to know % of the time used for each function of the program to find bottlenecks.

Pedro
Run it and read the output ?

If you need a manual for this ( or rather: ask before trying), you might want to reconsider taking chessprogramming as a hobby.

Tony
I suppose that the next version of your program will play better than Rybka 3.0, otherwise I do not understand your comment.
What does that mean ? You're not allowed to say something unless you can write a strong engine ?
pedrox wrote:
In addition, you confuse speed with bacon, as it does not need to use a tool as codeanalyst to build an engine, I am sure that more than half of the programmers do not use a tool as it is.
This doesn't really make any sense
pedrox wrote:

My problem with this tool is that I've tried to use it on Virtual PC and after that I did not get the name of the functions, but your reply not served me a lot.
You should have said this before, this makes sense. My point was that if you can't figure out how Code Analyst works, then you must be close to an idiot ( well, I can say now, cause you're not).

If however it doesn't work correct, that makes it different.

Maybe it was designed to not work. Profiling on a virtual machine doesn't really make sense. You're not profiling the code, you're profiling the hardware (virtualization) capabilities.

Furthermore, CA seems to need some kind of hardware clock, wich might not be available in virtual mode.

I think you have to go for realmode.

( I'll see if I can get it to work with one of my virtual machines.)

Cheers,

Tony