Jump to content

ASAN vs. Valgrind Experience


Recommended Posts

Curious if anyone has gotten valgrind to work with 0AD builds. Asking because some of the development documentation references valgrind (https://trac.wildfiregames.com/wiki/CodeQuality#Valgrind) which takes something on the order of a 10-20x hit in runtime performance while ASAN is closer to 2-4x perf hit (https://developers.redhat.com/blog/2021/05/05/memory-error-checking-in-c-and-c-comparing-sanitizers-and-valgrind#performance). At that point, running replays or even full games under ASAN may be reasonable compared to Valgrind which isn't feasible.

Link to comment
Share on other sites

  On 31/05/2022 at 6:33 AM, jprahman said:

Curious if anyone has gotten valgrind to work with 0AD builds. Asking because some of the development documentation references valgrind (https://trac.wildfiregames.com/wiki/CodeQuality#Valgrind) which takes something on the order of a 10-20x hit in runtime performance while ASAN is closer to 2-4x perf hit (https://developers.redhat.com/blog/2021/05/05/memory-error-checking-in-c-and-c-comparing-sanitizers-and-valgrind#performance). At that point, running replays or even full games under ASAN may be reasonable compared to Valgrind which isn't feasible.

Expand  

Some people have done for a while you need to pass an extra flag when updating workspaces.sh to make use of it

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...