Memory Profiler

Discussions related to Visual Prolog
choibakk
Posts: 12
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: 1681
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

Post Reply