We will be undergoing scheduled maintenance on May 20th, 2013 at 02:00 GMT.
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
The code profiler is a tool included with REAL Studio Enterprise edition. The profiler allows you to track your code to see how long methods are taking to run. Using it is quite simple. First go to the Project menu, and select the menu item Profile Code. This will put a check next to it. Note that the active profile in your code will cause it to run slightly slower because of all the logging. Now you simply run your project the same as you normally would. Use it how you normally would, then when you quit the project, a new Profile Tab appears. This Tab lists all the methods that were called while you used your project. Here you can do a quick scan of the total number of seconds spent. We can see that our ToDo window had the majority of the time. And if we scroll down we can see that these long red bars indicate that there was, most of the time, was spent in the double click and edit tasks events. You can see how many times a particular method was called and if you want to look at a method, you can just double click on it in the profile window and it will jump right to the method. ToDo doesn't really have any significant areas of concern regarding performance because it is such a small application. But if you have a larger application, it is very helpful to see how many times methods are called. You may find out that you have methods called more times than you expect which could result in performance problems. It is also very helpful to note which methods are taking the longest to run, because if you're trying to improve performance, those are the areas you should tackle first. There is one down size with the code profiler, and that is, that it only runs on the same platform as the IDE. So since I am running the IDE on Macintosh OS 10, the profiler will only work when I click the Run button and will only profile MAC OS X applications. It does not work with the remote debugger. If I need to profile my code on Microsoft Windows, I will need to make sure that I have the IDE installed on Windows, move my project over to Windows, and run it there with the profiler enabled.
| Course: | Real Studio |
| Author: | Paul Lefebvre |
| SKU: | 34190 |
| ISBN: | 1-936334-77-1 |
| Release Date: | 2011-02-02 |
| Duration: | 7 hrs / 87 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |