Accurate Modeling Of Core And Memory Locality For Proxy Generation Targeting Emerging Applications And Architectures