Android M also comes with a feature called RAM Manager that should help you to nail down troublesome apps on the Nexus 5.
Performance on the Nexus 5 has been an issue for many people with Nexus 5 users complaining about lag and stuttering. We continue to see complaints to this day. While Android M might not bring a cure-all fix, it does come with a tool that might help you eliminate threats to your device's performance.
Android M's new RAM Manager tool can be found inside of the apps menu. The RAM Manager allows you to see what's slowing the Nexus 5 down, what's using the maximum or minimum amount of RAM, and a whole lot more.
Android Police has a detailed breakdown of the feature and it's clear that this is a lot bigger than some people realize. Managing performance on Android devices can be a hassle but RAM Manager simplifies things for you. In turn, this could help you get better mileage out of the Nexus 5. We're excited, you should be too.