Question Locked

How to see malloc history for custom keyboard extension in iOS?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

For other applications we can enable malloc history and can clearly see the issue causing memory problems but when i am trying to debugg for my custom keyboard extension , i'm unable to fetch the history . I know the fact that custom keyboard extensions run in a separate process from the host app, and iOS does not provide access to the malloc history for other processes but can there be any possibility through which i can see ? Can jailbreaking device provide any sort of help ?

I tried dubbing using memory profiling instruments provided by xcode . I got the number of memory leaks and memory allocations but can't get the in depth history the get the root cause.

1 reply

by rproffitt edited

In order to keep iOS secure the OS must not allow such inspection outside or your app.

However you could add code to watch free memory and log that to see what API calls are causing memory consumption.

Still odd to read the above since the iOS machines I use have gigabytes of memory. What are you doing to use even a megabyte?

This discussion is closed to new replies.