AutoProfile: Towards automated profile generation for memory analysis