Memory Profiler

Discussions related to Visual Prolog
choibakk
Posts: 19
Joined: 5 Sep 2019 19:30

Memory Profiler

Unread post by choibakk » 22 Jun 2020 0:20

Hi Thomas,

Two Issues I think I've found. I've tested on both builds 904 and 906 with the same results:

Issue #1. My chess program is designed using the philosophy "first make it work flawlessly, then make it fast". In chess there is a chess routine commonly called "PERFT" that tests resulting possible node counts at "N"-depth. NADYA2.0 chess is calculating only about 100k NPS (Nodes per second). Your compiler is fast enough, that with my own code optimization I know I can improve that significantly.

So I wanted to start looking at the profiler to determine areas that can be made more efficient. I added the necessary profileMemory calls and create the necessary "*.vipmp" file. Then launch the tool from the IDE and it shows the first graph successfully. However, if I try to "add" a graph and click on ANY displayed options, the Memory Profiler program goes off and never returns--even if I only calculate to a depth of 1 on a starting chess board (a grand total of 20 nodes), I have to kill it from task manager, so I am unable to review any results.

Issue #2. Spaces in either the project path -or- the actual file name (i.e. c:\work\my project\my project.vipmp). In this case the Memory Profiler displays 5 or 6 error message boxes, and displays nothing. This is easy to work around since I just change the output file to anything like: "c:\work\my_project\my_project.vipmo". I also tested for long file/path names (i.e. > 8.3) and that works just fine.

Thanks for all your work!

User avatar
Thomas Linder Puls
VIP Member
Posts: 1175
Joined: 28 Feb 2000 0:01

Re: Memory Profiler

Unread post by Thomas Linder Puls » 22 Jun 2020 11:50

Thank you, we will look at it.
Regards Thomas Linder Puls
PDC

choibakk
Posts: 19
Joined: 5 Sep 2019 19:30

Re: Memory Profiler

Unread post by choibakk » 13 Oct 2020 2:02

Hi Thomas,

I'm planning on releasing my first public version of NADYA2.0 Chess to the chess community, in late November to compete against other chess engines. I read in other posts you don't provide release dates, and for my commercial software, I do not either. But hoping the next update has the profiler working :-) . So just bumping this thread in case you can squeeze it into the next release.

P.S. Once, I post it on the chess competition site, anyone will be able to download NADYA2.0, and it has its own console GUI interface for stand alone play against humans. The chess community knows it is written in Visual Prolog--and as far as I know it will be the first serious Prolog chess engine to enter competition since the 80's.

Cheers,
CHoibakk

Post Reply