add memory analysis for socket memory to test application