1
votes

the graph

Hi there, As you can see by the graph from profiler over the space of 1 minute the memory rises about 2mb and then drops back down only to rise again to the same spot. This is on an almost blank screen and no code is running. No new objects are being created. I've also noticed on iOS the CPU usage is also rising and falling in a similar pattern-from 20% up to 70%.
Thanks for reading.

1
You should tell us what "almost empty" means - what's on the screen does make a difference. - weltraumpirat
Your right! and it was what was off the screen that got me here (I didn't mention what was off the stage because I was sure nothing was really happening) - Luke

1 Answers

1
votes

There are many reasons. I recently had a similar situation where CPU was strangely high.

My debugging methodology was to comment out ALL code other than the boiler plate document class constructor and slowly introduce variables, classes and methods (in blocks rather than one at a time!) until the issue reappeared.

In my particular case it was to do with a network monitor class that I had incorrectly set up.