I’m trying to understand why my ionic app keeps using 2%~5% CPU without doing anything, draining the battery with no reason.
Actually, It used to be ~8% CPU when in idle state, but i figured out it was because of the $ionicLoading service with an embedded SVG spinner that was continuously animated, even when hidden. I figured this out using Chrome profiling tools. I ended up implementing my own loading component.
Now, i still have these 3-5% CPU activity while in idle state with profiling tools showing absolutely no activity:
No timers, no CSS animations, … nothing.
Could someone help me find out what is going on ? could this be related to the use of the crosswalk webview ? has anybody ever experienced such an issue ? Are there any other ways to profile CPU usage except using chrome dev tools ?