server: remove memory profile code