Find Memory Leaks With Xcode Instruments In Delphi XE5 And XE6 Firemonkey Apps On IOS

Delphi XE5 XE6 Firemonkey Debug Xcode Instruments Memory LeaksAdrian Gallero from TMS Software has a blog post up where he explains how to use the Xcode Instruments tool to find memory leaks in your Delphi XE5 and XE6 Firemonkey apps on IOS. TMS Software makes quite a few component sets for Firemonkey. Basically Delphi XE5, Delphi XE6, and AppMethod apps for IOS get compiled down into Xcode compatible LLVM backend and debug information. What this means is that you can probably use all of the Xcode Instruments tools like Allocations, Leaks, Activity Monitor, Zombies, Time Profiler, System Trace, and Automation. The blog post focuses on the Leaks tool and demonstrates how you can take your IOS app that is already on the IOS device (and compiled in Debug mode) and target it with the Leaks tool. You will see all of your Delphi class names and method names just like if you were debugging in Delphi itself. The call stack is displayed along a timeline and will show where there are memory leaks. Finally at the end of the blog post he explains how to use the [WEAK] attribute to fix the memory leak he created between a Parent and a Child object. Using Xcode Instruments does require that you have your device connected to the Mac you are running Xcode on so if you use MacInCloud this will not work for you. However, in another blog post I’ve covered how you can use NSLog to write out debug information to the IOS console as a second way for debugging IOS apps created in Delphi.

Head over and read the full blog post about using the Xcode Instruments Leaks feature to debug your Delphi apps on IOS.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Find Memory Leaks With Xcode Instruments In Delphi XE5 And XE6 Firemonkey Apps On IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

One Response to Find Memory Leaks With Xcode Instruments In Delphi XE5 And XE6 Firemonkey Apps On IOS

  1. Pingback: Ten Top Tips For Debugging Apps In Delphi XE7 Firemonkey On Android And IOS | Delphi XE5 XE6 XE7 Firemonkey, Delphi Android, Delphi IOS

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE6 Firemonkey Migrate Code From Windows To Mobile
Write New Or Migrate Existing Code To Android And IOS Using Delphi XE6 Firemonkey

Embarcadero has a resource up on their DocWiki where they cover how to move some code which is Windows based...

Close