Code Profilers

Discussion of chess software programming and technical issues.

Moderator: Ras

jackk03
Posts: 18
Joined: Wed Jul 12, 2023 1:38 pm
Full name: Giacomo Porpiglia

Code Profilers

Post by jackk03 »

Hey, does anyone have a good profiler to profile my engine (c++) ? I have AMD hardware. I tried AMD uProf, but it's not clear at all ... Thanks :)
User avatar
Ras
Posts: 2694
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Code Profilers

Post by Ras »

GCC's gprof could be something to look into, that's what I use.
Rasmus Althoff
https://www.ct800.net
Carbec
Posts: 161
Joined: Thu Jan 20, 2022 9:42 am
Location: France
Full name: Philippe Chevalier

Re: Code Profilers

Post by Carbec »

Visual Studio is free and can profile.
jdart
Posts: 4397
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Code Profilers

Post by jdart »

Intel VTune profiler is a free download. It is pretty easy to use. It is functional on AMD processors, but some features do not work there.
jackk03
Posts: 18
Joined: Wed Jul 12, 2023 1:38 pm
Full name: Giacomo Porpiglia

Re: Code Profilers

Post by jackk03 »

I just tried gprof, and it works for me. I had already tried VTune but it had some issues in displaying the correct function names if they are static inline, for some reason. Thanks everyone :)
abulmo2
Posts: 461
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: Code Profilers

Post by abulmo2 »

jdart wrote: Sun Feb 04, 2024 6:55 pm Intel VTune profiler is a free download. It is pretty easy to use. It is functional on AMD processors, but some features do not work there.
Does not work for my ryzen 9 5950x cpu...

Code: Select all

- This analysis type is not applicable to the system because VTune Profiler
 cannot recognize the processor. If this is an old Intel processor, please refer
 to the minimum hardware requirements in the release note. If this is a new
 Intel processor, please check for an updated version of VTune Profiler.
 If this is an unreleased Intel processor, please contact Online Service
 Center for an NDA product package.
- This analysis type is not applicable to the current machine microarchitecture.
Richard Delorme
jdart
Posts: 4397
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Code Profilers

Post by jdart »

abulmo2 wrote: Mon Feb 05, 2024 12:59 am
Does not work for my ryzen 9 5950x cpu...
Hotspot analysis works for me on an AMD. Memory analysis and probably some other types depend on a driver which does not work on my system.
JVMerlino
Posts: 1396
Joined: Wed Mar 08, 2006 10:15 pm
Location: San Francisco, California

Re: Code Profilers

Post by JVMerlino »

I have Visual Studio, which is fine. But I use Very Sleepy. Easier to digest the output, and it's free. :)