Whenever my phone switches from cellular to wifi or the reverse, the phone effectively stalls. This can last for a minute or so. It is still functional during this time, but very slow and stuttering (if in the middle of an animation it will do a few frames, then stop for several seconds, then do a few more).
I am thinking that one or more apps are set to wake up when the network status changes, and either they are conflicting with each other or holding the cpu while they wait for the network to be finally ready.
What should I use to work this out? I have betterbatterystats installed, amplify, and greenify. I have taken a few stabs at working out what might be causing this (mostly by greenifying any app that is destined to wake when the network changes), and some random click-and-hope type attempts to figure it out.
The phone is a Samsung Note 4, N910G running kitkat.