Analyze memory allocation