Flash profiling of memory after clearing cache of home-made rsl files

I have a question about the flash memory profiling tools.
Once I have completely loaded a swf file into my browser, complete with multiple home-made gigantic RSLs (not flex swzs), the memory footprint of my application is small; I have not instantiated any of the objects in the RSL files.  However, as stated earlier, the RSLs are very big files; full of embedded assets.
If I clear my browser cache, those gigantic RSL files are deleted.
Then, when I use my flash app to create objects from the RSL, flash profiler shows my memory footprint increase.  That makes sense; I just made some large objects.
But from where did flash load those objects? 
I deleted the RSL files.
The flash profiler showed I was using hardly any memory, suggesting that the class files were not loaded into memory already.
Are the files kept in a secondary file cache?  Is there a second memory cache?  Can I profile its size?

1. No. and the main footprint of a bitmap is probably is per-instance so the instance cost is probably what you're interested in.  Anything embedded is also a class and the first time you access the class the Class category should go up by a bit.
2.  When your app requires an RSL, the SWF for the RSL is loaded into memory (in a buffer you can't see from the profiler), expanded and parsed (into even more memory that you can't see from the profiler).  Then as you access classes from the RSL, the profiler should show growth in the Class, Object and Function.  If you statically link just the code you need, the amount of memory to load the SWF and parse it will be smaller since it doesn't need space for classes you won't need, but after that it is the same.  The advantage of the RSL is that most folks end up using 200K or more from the RSLs so that's a download cost you pay the first time you run the app.  The Flex RSLs are pretty well deployed so your chances of having savings is pretty good.  Private RSLs for your app will do no good unless there is another app on the same domain that uses the RSLs.  See the modules presentation on my blog for more info
3.  The profiler does not show System.totalMemory.  Even that number isn't the whole measure.  We're currently fans of PrivateBytes to measure total weight of the app.  But it depends on what problem you're trying to solve.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • Firefox 4 wont load page completely or play videos on youtube after clearing cache

    Firefox 4 wont load page completely or play videos on youtube and ive noticed its always after clearing cache. after a while it will start working properly but its kind of annoying. Know what the problem is?

    oh, there is still a pending issue with youtube unfortunately. I can play videos individually but if I click on a video that is part of a playlist it lags and then goes to a blank space where the video should be. Is that a flash player issue? So, I can play videos individually but not playlists.
    Any word on that would be awesome
    Thanks again
    E

  • After clearing cache and cookies, my same dropdown list keeps returning when I log in to Facebook.

    After clearing cache and deleting cookies, my same dropdown list keeps on returning whenever I log in to Facebook. I need to know how to delete login history.

    That data is called Form History
    Options/Preferences > Privacy > Clear your recent history > Everything + Form history

  • 87 tabs are restored after each restart even after clearing cache

    firefox onVISTA Restores 87 tabs even after clearing cache: This takes a long time to restart

    Clearing the cache might not help, try the following:-
    1) Cross check is 'Show my windows and tabs from last time' checked (see attached file 'Open tabs from last time'). Also refer to this website wrt 'session restore'
    https://support.mozilla.org/en-US/kb/Session-Restore
    2) try clearing up the entire history and then see if the same problem occurs (Tools -> Clear Recent History)

  • Applications disabled after clearing caches, etc.

    My computer had begun to run slowly, so I followed advice in these pages and installed and ran an application called Cocktail: I ran the daily, weekly and monthly service operations and cleared caches and logs. Now my computer runs much better, but two applications that I have had for some time no longer work. One is an RSS news reader called PluckyX, the other is CarbonErrors. In each case the application's icon has changed.
    In the case of PluckyX, it now tries to open using Script Editor, resulting in error messages, and I cannot find any other application to open it with. PluckyX is no longer made and its creator cannot be contacted, but I downloaded another copy from VersionTracker, with the same negative result. I have not yet tried to find a new copy of CarbonErrors.
    Can anyone please suggest a solution? It is PluckyX in particular that I should like to revive.

    If you are updating Safari (or just have):
    Input Managers and other plug-ins from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up. If you have installed 10.4.11 and Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 uses Safari 3.0.4 which is not a beta. If Safari 3.0.4 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 2 when running 10.4.11 can have repercussions, as Safari 3.0.4 uses a completely different webkit on which other applications like iChat, Mail, Dashboard widgets etc also rely.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Two such add-on that have been frequently mentioned here, among others, for causing such problems are Piclens and Pithhelmet. If you have them, trash them and go the developer's sites to see if new versions are available for Safari 3.0.4.
    In your case PluckyX and Finale are the suspects.
    You should also ensure, if you are running Tiger 10.4.11 or Leopard, that you have downloaded and installed the correct version for your Mac of Security Update 2007-009.1.1, which also deals with the Quicktime/Flash issues you may have experienced, as well as the latest Java update.

  • After clearing cache,cookies,history some sites still know my location ? I also turned off location

    After clearing the cache,cookies,history and turning off the location service, some web sites still know the city I'm in ? I like to start freash on some sites but my old search still apear ?

    tbwaukesha wrote:
    After clearing the cache,cookies,history and turning off the location service, some web sites still know the city I'm in ? I like to start freash on some sites but my old search still apear ?
    The site is likely geo-targeting your location from your ISP assigned IP Address. See the explanation here http://www.computerhope.com/issues/ch001043.htm or do a Google search for geo-targeting.

  • IE work fine but I cannot get Firefox to connect even after clearing cache, reseting Firefox and re-installing, what do I do next?

    Firefox recently tried to update, after that it no longer connects to the Internet. IE works fine. I tried clearing cache, reseting and re-installing. What do I do next to fix the problem.
    Thanks...David Puzycki

    hello david, please see [[Fix problems connecting to websites after updating Firefox]]

  • My Safari keeps crashing even after clearing cache/history/etc. Help?

    I have tried resetting, clearing cache, and erasing the history. I'm not sure what is going on with my Safari. I did notice I kept getting those "Mackeeper" popups, but I never downloaded it or anything. Could this be the issue? I have looked through other threads and couldn't find a solution to the problem. Thanks!

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • I have a new website but can't see it on my computer after clearing caches!

    The problem is only on my mac others in the company see the new site. The problem is on on all 3 browsers safari, chrome and firefox. I have cleared caches, gone through to clear the cache.db in the library. Im getting desporate now, please help!

    Hi Carolyn, thanks for your reply. The problem is fixed. I don't know how but cahes other than the ones i can see/control have been updated.  My collegues could see the new site immediatley but my computer took 2 days to catch up! Appreciate your reply. Have a good day.
    Best
    Matt

  • BSOD Windows 7 after clearing cache of Firefox

    When clearing the cache of Firefox this night I got a BSOD with Windows 7 Prof, causing it to memory-dump followed by a forced reboot. After restoring the backup all worked as intended but I'm hesitant whereas I should try and clear my cache.
    == This happened ==
    Just once or twice
    == I tried clearing the buffer/cache.

    When clearing the cache of Firefox this night I got a BSOD with Windows 7 Prof, causing it to memory-dump followed by a forced reboot. After restoring the backup all worked as intended but I'm hesitant whereas I should try and clear my cache.
    == This happened ==
    Just once or twice
    == I tried clearing the buffer/cache.

  • Missing stuff/altered settings after clearing cache

    So I wanted to clear up disk space by clearing up the cache. I had not done this before so I did it for the first time. I cleared up the caches from both the main Macintosh HD device and my user name. I went to the Library folder, then to the cache folder, selected all, and put all the stuff in the Trash and emptied it. Then I re-started my computer.
    The problem is, after I restarted I noticed that some things were missing. All my desktop images were gone. Even though they were all the default images that came with the computer, I liked the default space image. The color of the menu bar on top (where you see the apple icon, file, edit , ect.) changed from the default light gray color to now a light blue color. I tried to change the color by going to system preferences and then to appearances. But I only have two choices, Blue and Graphite. When I change to Graphite, there is no difference. Also, all my widgets are gone. I tried to look for those widgets but can't find them on the apple website.
    What I did to try to fix this problem, I inserted the applications install CD that came with the computer and re-installed the applications but the stuff was still missing. I have not tried to re-install  MAC OS X because right now I don't have a way to backup my files. For those who cleared their cache like I did; did anybody have things missing? And how can I delete the cache without affecting the settings of my computer??

    Deleting the cache files shouldn't have had the effects you describe, so I don't know what really happened. What I do know is that you should do no more work with the computer until you have a backup solution in place. Without it, you are inevitably going to lose all your data, and there will be nothing anyone can do to help you. Shut down the computer now. Don't turn it on again until you're ready to connect an external hard drive and activate Time Machine or some other backup software.

  • Repeated "Bad Request" errors after clearing cache, cookies, and cookies.sqlite

    I get repeated "Bad Request" errors when submitting forms, logging in/out of sites, etc. I get this on a wide variety of sites. I have tried repeatedly clearing all cache and cookies. And I just tried disabling all my add-ons (only have 4) and then deleting the cookies.sqlite file and this still made no difference.
    I am using Mac OS 10.5.8 and Firefox 5.0.1 but I have been experiencing this problem in past versions as well, maybe as far back as the latest firefox 3. My main motivation for upgrading Firefox multiple times was hoping this problem was corrected. It never used to happen, it just started happening all of a sudden. It has never occurred on Safari and I am still able to get any site that doesn't work properly to work on Safari without any problem.
    I experience this on many sites. One reliable cause of it is logging out of Facebook.

    You did delete all cookies.* files ?
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Cookies#Removing_cookies
    Create a new profile as a test to check if your current profile is causing the problems.
    See Basic Troubleshooting: Make a new profile:
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Firefox won't load after clearing cache - Why?!?!

    I'm on a MAC. I cleared my cache and immediately Firefox stopped working. I deleted Firefox from my Applications folder, re-downloaded it from the internet & re-installed it. It still won't start up. When I click on the icon in my Dock, it says "Application Not Responding". I have re-installed it 3 times with no luck.
    I read that I could try changing my profile somewhere within Firefox, but if the App is not loading, I cannot access this!
    Please Help!

    See this help article with all the details about How to open Profile manager.
    [[Use the Profile Manager to create and remove Firefox profiles]]
    Does it helped??

  • Can't see the new version of the website after clearing cache and history

    I am updating images and changing my location but FF still shows me old images. I have cleared the cache and history but nothing worked. For location thing, I switched my location from NY to HI and back to NY but my browser still shows content from HI not from HI. I was trying to find the solution but all the solutions I saw didn't worked at all. Does anyone help me with this? Our website is on Adobe CQ.
    Thanks.

    If you use extensions (Firefox/Tools > Add-ons > Extensions) that can block content (e.g. Adblock Plus, NoScript, Flash Block, Ghostery) then make sure that such extensions aren't blocking content.
    If images are missing then check that you aren't blocking images from some domains.
    *Press the F10 key or tap the Alt key to bring up the hidden "Menu Bar" temporarily.
    *Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
    *Check "Tools > Page Info > Media" for blocked images
    *Select the first image link and use the cursor Down key to scroll through the list.
    *If an image in the list is grayed and "<i>Block Images from...</i>" has a check-mark then remove this check-mark to unblock images from this domain.
    Make sure that you do not block (third-party) images, the permissions.default.image pref on the <b>about:config</b> page should be 1.
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *http://kb.mozillazine.org/Websites_look_wrong

  • Even after clearing cache Fire fox does not load my bank login site, while Safari always does it right away, so what is the problem?

    About half the times that I have tried to access my bank online Firefox fails to find the server and claims the site is unavailable. Immediately afterwards Safari hooks up to the same site, without delay.
    Why does Firefox fail so often, even when I keep my cache clear?
    What can be done to repair this fault?

    Hi gregory,
    It is a big subject, and the following article sets out various options.
    http://www.macworld.com/article/1152611/remoteaccesintro.html

Maybe you are looking for

  • Error message: Sail library met some error

    Hi there, I came across this error in the roboEngine error log: Sail library met some error, MsgID: 25, Msg: ERROR_INTERNAL. I also have a whole bunch of errors relating to older projects that no longer exist: - Fail to create IFilter object - Cannot

  • Query Help for SO Alert

    Dear Experts, I have a scenario where our user would like to be reminded of action items pertaining to a specific BP when entering a new SO. I have the following query but would like it to alert only once.  What syntax do I need to configure for this

  • Remote object taking more time to respond

    I am using live cycle data services to access my remote java object. Sometimes remote object is taking a lot of time to respond (even 15 minutes). Please give me some solution.

  • Invalid Material Error in Selection Screen of Report

    Expert, Infact, I have material value sitting in master data and cube itself. Though, running report on the same cube with mendatory entry of material does not work because when I entered material value it says invalid entry. Any clue on this issue?

  • How can i put whatsapp on my opd 4g without jailbreak?

    how can i put whatsapp on my ipid 4g ?