This looks really mad:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 23442 joel 20 0 255g 445m 12m S 384,3 5,7 2:46.58 ags ...
This looks a bit better
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 26151 joel 20 0 2473m 1,7g 11m S 331,5 22,5 10:25.62 ags
The time looks incorrect. Is mtrace an enthusiast and what's the difference to trace.log?
mtrace ./ags trace.log No memory leaks.