Flex profiler questions

Is there anyway to tell WHY an instance of a class is trapped in
memory?
So I discovered the flex builder profiler yesterday. I have
never used something like that before, and I am now aware that many
of the instaces I thought I was clearing for garbage collection are
NOT being garbage collected.
I have been trying for a whole day now and I am still trying
to get rid of the excess instances of the same class I started
with.
So I made an interface called IDestroyable, which has one
function destroy() which first loops through all its children and
sets them to null and if they implement IDestroyable then call
destroy on them as well. Then it removes all its own event
listeners. and set the instance and all its children and grand
children to implement IDestroyable.
Yet all my work has been for nothing because the instances
are STILL trapped in memory.

Garbage collection isn't triggered by simply destroying a
component and all refs to it. Garbage collection will run when
Flash Player wants it to. Like when it need more memory to create
another component.
You can click the garbage collection button while running the
profiler, and you will see the instances go away (after you have
destroyed them of course).

Similar Messages

  • Issue with Flex Profiling

    I am trying to run memory profiling for a flex application. But when I run the profiler, it does not open up the window for me to select options to do profiling on. I followed a link on http://stackoverflow.com/questions/2354891/flex-profiler-doesnt-do-anything and updated the mm.cfg file didnt help either. Can any one help me with this?
    Thanks.
    KM

    Reboot.  Make sure debugging works.  Then try profiling again.

  • Flex language questions should go in the General Discussion Forum

    This forum is intended for Flex Builder questions.
    Of course you can post wherever you like, but if you want
    help, go where the helpers are.
    Tracy

    can you define what goes where then?
    General discussion sounds like thoughts, comments, hopes and
    wishes.
    Builder 2, (meaning Flex Builder 2?), seems to be the only
    area for other Flex 2 questions.
    I don't mean to be wise here, but I personally don't
    understand what a "builder 2" question is if not those that deal
    with flex 2, such as those posted here. I want to post my questions
    where they should be so that I might find help, so maybe the forum
    labelling should be re-considered or better defined.

  • Strange Error using Flex Profiler

    Hi,
    I am trying to use the Flex Profiler to figure out where to put my time when optimizing the code of a .swf file generated in Flash CS4. In Flex, I select "Profile External Application" for the "Profile" menu item. Then I select "Launch the application manually from Ooutside Flex Builder" and set the timeout to 60000 milliseconds. I then go over to Flash CS4 and start a debug session of the application I want to profile. This should make the profiler pick up the session and give me the stats I need. But I get a couple of weird errors in the Flex Builder.
    The first error is a message box the pops up and says: "Profiling can only be performed on the debug version of an application."  I am definitely running the Flash application in debug mode... The only thing that I can think may be a problem is that I am using the Flash Facebook API and linking to the external .swc file for that API. Could that cause a problem?
    The second error is an exception that gets thrown in Flex Builder and is displayed in the Console. The exception is this:
    flash.swf.SwfFormatException: unrecognized fill style type: 202
        at flash.swf.TagDecoder.decodeMorphFillStyle(TagDecoder.java:982)
        at flash.swf.TagDecoder.decodeMorphLinestyles(TagDecoder.java:914)
        at flash.swf.TagDecoder.decodeDefineMorphShape(TagDecoder.java:868)
        at flash.swf.TagDecoder.decodeDefineMorphShape2(TagDecoder.java:849)
        at flash.swf.TagDecoder.decodeTag(TagDecoder.java:310)
        at flash.swf.TagDecoder.decodeTags(TagDecoder.java:170)
        at flash.swf.TagDecoder.parse(TagDecoder.java:119)
        at com.adobe.flash.profiler.internal.PlayerSession.swf(PlayerSession.java:570)
        at com.adobe.flash.profiler.internal.ProtocolHandler.readSwf(ProtocolHandler.java:353)
        at com.adobe.flash.profiler.internal.ProtocolHandler.process(ProtocolHandler.java:114)
        at com.adobe.flash.profiler.internal.PlayerSession.run(PlayerSession.java:383)
        at java.lang.Thread.run(Unknown Source)
    It looks like it has something to do with a fill style, but I am just doing standard Flash stuff... No version of Flash Player has had any problems with the .swf file, but somehow the profiler is not liking something.
    Does anyone have any idea about what is going on here? Apparently the profiler is a great tool to use to optimize ones code, and I would really love to use it.
    Thanks!!!

    I would not start a debug session in CS4.  I would just find the SWF generated by the last debug session and launch the standalone player with that SWF.  There might be some contention in having both CS4 and the FB profiler trying to hook up to the same SWF.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Flex profiler does not start up

    I am using Flex Builder 3.0 Pro plugin for Eclipse 3.3. Flex
    profiler does not start at all. Do I need to configure project
    setting somehow in order to enable profiler?

    Just in case anybody wants to know... it was Profiler port conflict with application running on my desktop.

  • Unable to use Flex Profiler

    Hi,
    We are developing Mobile application so we normally use Flex Profiler and Adobe Scout to optimize memory and speed up performance. Few days back I was able to do Flex profiling, but today somehow it stops working. When I try to use Flex profilier it first show me the "Connection Established" popup with "Enable memory profiling" and "Enable performance profiling" check box ticked.
    After clicking "Resume" button it shows me the Flex Profile view, with empty Live Object section and straight line in Memory Usage section. Please see the screen shot for more detail.
    After some googling, somewhere I found that "When you profile an application the IDE writes to the mm.cfg file on your local machine. It adds in a pre-loader that runs before your application is started – this allows the IDE to connect to the app to get the profiling data.". I also tried to replace mm.cfg file from other machine but it didn't worked for me.
    I have also tried to replace AIR SDK and creating fresh workspace but still facing the same issue. Can anyone help me on this?

    By the way, simply adding the quotes around the lexical names in the sql statement doesn't work. That causes the lexical references to be ignored as simple string values:
    SELECT
       '&FLEX_GL_BALANCING_APROMPT' alias_gl_balancing_aprompt
      ,'&FLEX_GL_ACCOUNT_LPROMPT'   alias_gl_account_lprompt
      ,'&ACCT_BAL_LPROMPT'          alias_acct_bal_lprompt
    FROM dualI turned on statement-level debugging via xdodebug.cfg and saw how it compiled the lexicals. By replicating the call to apps.fnd_flex_xml_publisher_apis.kff_segments_metadata that I found there, I was able to hack together a workaround for this issue.
    Please point me to a better way of doing this if possible, as I had to GRANT EXECUTE on this apps package to my custom code schema. Is there a better lexical/flexfields reference than the XML Publisher documentation?
    Here is the call I made in my before-report trigger:
    --set ACCT_BAL_LPROMPT flexfield segment metadata lexical
    begin
    apps.fnd_flex_xml_publisher_apis.kff_segments_metadata(
      'FLEX_ACCT_BAL_LPROMPT',
      'SQLGL',
      'GL#',
      101,
      'GL_BALANCING',
      'Y',
      'LEFT_PROMPT',
      c_FLEX_ACCT_BAL_LPROMPT
    end;

  • Flex profiler: giving socket timeout error

    Hi,
    I am using Flex 3 Builder. With Flex 3 SDK and overlayed AIR 2 sdk. When I try profile my AIR app, I get "Socket Exception" in the console.
    I tried editing the mm.cfg manually but it seems not working. (Followed various posts in forums/blogs). But no Luck.
    I observed the mm.cfg file, keeping it blank, Flex Builder does write the PreloadSwf argument in it. For a while, and then it goes blank after throwing the socket error.
    I don't have Firewall on as well. I tried with both direct connection to internet and with Proxy.
    Any ideas on what's going on ?
    Thanks,
    Brijehs

    Tried all above, still getting the same exception

  • Line resets and stuck profiles (question not issue...

    One of the mods in their calls to me mentioned that they are happy to do some line resets for me but want to avoid them too often since this caused the DLM to get concerned over the line status. [I have no reason to doubt this statement]
    Now in my case what I sometimes could do with is getting a IP profile unstuck ie when it passed the point where it should have changed but has not and yes the BT system says that it did.
    Is this the same thing as a line reset (which one would think it shoudl not really be) and if not can anyone confirm that this does not anger the DLM?
    [the reason for asking is that normally my profile should go up within 24 hours at most which is bearable but recently it has stuck twice, ie BT says 1000 but speedtester and throughput showed 750].
    If my post was helpful then please click on the Ratings star on the left-hand side If the the reply answers your question fully then please select ’Mark as Accepted Solution’

    To clarify, first the image is placed, then there is a rectangle over the image whose frame is slightly larger than the image frame, with transparent fill, and set the stroke to thick white with transparency lowered to induce the "reflection" sort of effect. Take a look at this screenshot: http://screencast.com/t/AYQDwx3g7w
    Hope this helps.
    Cheers
    Parikshit

  • Color Profile Question

    I recently purchased a new PC and have been working from it for about a month or so without any issues. My client sent me an email saying that her images were appearing muted on her computer screen prior to printing them off of a few common photo labs. I looked into it and tried it myself and it was indeed correct. All of the images edited on my new PC were muted...my first instinct was that it was the color profile. I converted the image to sRGB and it fixed the problem. Now comes the problem....my photos are saving under the wrong color profile. How do I prevent this from happening so that all my images are automatically saved the my preference of color profile. I hope this makes sense because my mind is spinning from trying to figure this out! Thanks in advance!

    audi454 wrote:
    1. AdobeRGB
    2. Im not sure what you mean, preferences in PSE?
    3. My client has a print release, I use WHCC to print my pictures and I believe they require sRGB as well.
    4. Yes I always shoot in RAW.
    Thanks for taking the time to help, I looked at my Lightroom color settings since that's how I import my pics and it was set on Adobe Pro I believe... I changed it to sRGB.
    Sent from my iPhone
    Thanks for the info : I'll start with the 4th question because it's the less known factor with Elements
    If you shoot raw, the settings of your camera (Adobe RGB) will be ignored. This setting works only with the out of camera jpegs. A 'raw' file has no color profile, so PSE needs to know which profile you want for the conversion. You won't find any menu or dialog entries in ACR for that purpose. So, to convert the file when you 'Open' in the editor, PSE looks at the settings in your editor (my question #2, Menu Edit/Color settings...
    If you have chosen option 1, 'Always optimize for computer screens', PSE will convert the raw file to sRGB profile.
    If you have chosen 'Always optimize for printing', PSE will convert to aRGB...
    If you want to take advantage of the slightly wider color space of Adobe RGB because your home printer can use it, select the second option, but if you have to send the picture in sRGB, do not forget to convert before sending. Menu /image/convert color profile.
    If you don't want to bother, use sRGB with the option 1. You won't risk forgetting to convert the client version.
    Never use 'No color management' in the menu /edit/color settings
    If you first convert to sRGB with option 1, you won't get any advantage to convert to aRGB afterwards

  • Simple Flex Chart question - Plot Chart labels

    I'm playing around with displaying data from WDA as charts in Flex 3.
    I'm able to bind my internal table, which has 3 fields, to the plot chart.
    The table looks like this
    ext_id      type string    " bound to prjname in Flex
    cost         type string    " bound to prjcost in Flex
    benefit     type string    " bound to prjbenefit in Flex
    These are all bound to my island's DataSource.
    I have bound these in Flex and the Cost and Benefits are showing up as points on my chart. However, I can't seem to get the Project Name to display on the plot points. All I see when I mouse over the point is EXT_ID, and the values for cost and benefits.
    The cost/benefit values are coming across correctly, just not the project name (ext_id) value. any ideas?
    here's the Flex code for the chart
         [Bindable]
         public var dataSource:ArrayCollection;
         [Bindable]
         public var prjcost:String;
         [Bindable]
         public var prjbenefit:String;
         [Bindable]
         public var prjname:String;.
        <mx:PlotChart id="plotchart1" dataProvider="{dataSource}" showDataTips="true">
           <mx:series>
                <mx:PlotSeries displayName="{prjname}" yField="{prjcost}" xField="{prjbenefit}" dataProvider="/>
            </mx:series>
        </mx:PlotChart>

    This is really a Flex question not an Islands specific one.  I don't think the displayName properity is what you want to use here.  This is the name for the entire series as it will be displayed in the legend. I think what you want is a dataTip.  You register a callback for the dataTip rendering and then fill the custom dataTip quick info.
    This is an example from a bar chart, but the theory is the same:
    <mx:BarChart id="barChart" dataTipFunction="dtFunc" xmlns:mx="http://www.adobe.com/2006/mxml" type="clustered" width="100%" showDataTips="true" height="100%">
         <mx:verticalAxis>
              <mx:CategoryAxis categoryField="{SalesOrd}" dataProvider="{dataSource}" />
         </mx:verticalAxis>
         <mx:series>
              <mx:BarSeries id="bsGross" xField="{grossAmt}" displayName="Gross Amount" dataProvider="{dataSource}" fill="{otdFill}" showDataEffect="{slideIn}"  />
              <mx:BarSeries id="bsNet" xField="{netAmt}" displayName="Net Amount" dataProvider="{dataSource}" fill="{rtyFill}" showDataEffect="{zoomIn}"  />          
         </mx:series>
    </mx:BarChart>
    private function dtFunc(hd:HitData):String {
                  switch(BarSeries(hd.element).id){
                       case "bsGross":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n" + FlashIsland.formatNumber(hd.item.TTL_GROSS_AMOUNT) + " " + hd.item.CURRENCY_CODE;                        
                             break;
                       case "bsNet":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n " + FlashIsland.formatNumber(hd.item.TTL_NET_AMOUNT) + " " + hd.item.CURRENCY_CODE;
                             break;                   
                  return "Amount";

  • ISE 1.x profiler question (Network Scan Action & Exception Action)

    Could someone please explain the following based on this scenario:
    Say you create a Profiler Policy called “DeviceBrandX” and you set the Minimum Certainty Factor to 20 and you create a condition to profile based on a check for condition based on host-name in DHCP and you assign the condition a Certainty Factor Increases of 10. In additoin you define an Exception Action and a Network Scan (NMAP) Action in the policy.
    Here are the two questions:
    If you create another condition that initiates a scan Network Scan (NMAP) Action to scan say for OS - how does the scan influence the Certainty Factor?
    Also if you create a condition that initiates Exception Action - how does that influence the Certainty Factor?
    Thanks,
    Allen

    Hey Tarik,
    Thank you for the response; I have looked at the apple-device policy, I see that the “* Exception Action” field is = NONE. I only see that the Network Scan (NMAP) Action is set to OS-scan. In fact I have looked at all the generic policies and none have an “* Exception Action” field set.
    I can see that under the Rules configuration you can set the rule to "Take Exception Action" but in the top part of the configuration the "* Exception Action” there is no selection option.
    I am assuming if you wish to trigger and event you would identify the event in the “* Exception Action” field and under the rule you would select "Take Exception Action". How do you configure the “* Exception Action” to determine which Action to take?
    Thanks,
    Allen

  • Colour Profile Question - Press PDF

    Hi
    I've got a quick question regarding colour profiles.
    I've designed an A5 flyer for a client and I have my CS3 suite colour settings set to Adobe 1998 for RGB and Euro Coated for CMYK. The client has decided that this flyer is now to be printed on uncoated paper. So, should I be converting or assigning the working/document CMYK profile to Euro uncoated?
    Also on output for press I have a PDF export setting which I use for creating press pdf's which is set to 'No Colour Conversion' and 'Don't include profiles', so in fact does the above matter at all?
    I'm totally confused, any help appreciated!
    Thanks

    I think you are guessing correctly, they may have some control which will work ok for them at a certain level.
    You could convert in ID, which will alter the appearance and that will change the output file. Or you could manually adjust the colour/saturation to taste and let the printers go through their usual process and end up with better job.
    They probably 'run to density' on press, so you are taking some of their control. Most printers at least calibrate their equipment to a standard, such as Euroscale and then suggest that clients use that when preparing files. That is what I guess when a printer does not have a custom profile.
    What they are saying to you is that they are calibrated and their approximate appearance is based on Euro Coated on coated stock at a particular ink density measured at the press.
    Uncoated stock looks desaturated, so if you increase your saturation and reduce your Total Ink, you can control the look at their desired press density.
    This is not correct colour management, but reflects real world conditions in many commercial 'jobbing' printers in my experience.

  • Socket Time out while running Flex Profiler .

    Hi ,
    I have  develped a sample Flex Application , whne i am trying to run the Profile Application with in the Flex Builder ,
    I am getting Socket Time Out .
    Can anybody please let me know how to resolve this exception .
    Thanks in advance .

    Reboot and try again.  Sometimes some player instance in a browser or IM
    hangs up the socket.

  • How can i in cs6 proof an lab photographic profile question ? and where is minibridge?

    Hi
    i'm playing with cs6
    i have a question about printing in a photographic lab
    i have many profiles for different papers ,installed in my os folder (windows7 and xp my laptop)
    to proof how will look my photos is right
    View -> Proof set up -> custom -> device to silumate -> select the Lab profile
    now view -> proof colors
    is right?
    my i ask a question about minibridge ?
    i installed cs6
    i have cs5 and cs6 on my w7 , but under file minibridge is gray -> what's wrong ?
    to be honest i have never loved minibridge , but can't understand why is not available
    thanks

    select the Lab profile
    What an unfortunate choice of words (or capitalization).
    Lab is a color space, but I think you mean »the RGB- (or possibly even CMYK-) profile required/recommended by the photographic lab«.
    In that case it seems recommendable to actually convert (duplicates of) the images to the profile and handing those over to the lab because settings like Render Intent, Black Point Compensation etc. can make a difference in appearance.
    And how reliable the preview on your screen is still depends on how diligently you profile your monitor, how constant your viewing conditions are, how well the lab maintains their output equipment etc.

  • DNG Profile Editor "base profile" question.

    I'm profiling a Canon 5D3 with both the Adobe DNG Profile Editor and the Xrite ColorChecker software. It's been about 3 years since I last profiled a camera, so I'm re-doing the learning curve. My question now is how and why the DNG Profile editor depends on a "base profile?" Specifically, why does the DNG PE Chart Wizard generate different results depending on what base profile is used.
    I see in the documentation that "all color adjustments made in the DNG Profile Editor are defined relative to a base profile." I understand that logic when making a custom profile via manual tweaks. You have to have a starting point. But I don't understand that logic when using the Chart Wizard. I expected the Chart Wizard to arrive at the same pre-defined target point regardless of the starting point. It does not seem to do that.
    I discovered the difference by using an apparently bad workflow. I shot my colorchecker chart, converted the CR2 to DNG and brought it into Photoshop via ACR to inspect. That stored "Adobe Standard" as the base profile in the DNG.
    Then I fed this DNG to the DNG PE Chart Wizard and generated a profile. I opened the image in ACR and applied "My Profile", which became the base profile in the DNG file. I thought I did something wrong, so I ran the same DNG through the Chart Wizard again and generated "My Second Profile." That version looked very strange, so I did it again and made "My Third Profile."
    Now I have three profiles. My First Profile was made from Adobe Standard base. My Second Profile was made from My First Profile base. My Third Profile was made from My Second Profile base. Each iteration becomes more strange (bad), so this is clearly not the proper workflow. But what is? What base profile should be selected for Chart Wizard and why does it matter?
    Being curious, I did the same exercise using the Xrite ColorChecker software. That software generates the same result, regardless of what base profile is stored in the DNG files. I'm not sure I like the results, but at least they are consistent.

    DNG Profile Editor lets you define color edits (in the first tab) using a set of color control points.  These control points in turn define a color lookup table used to perform the color correction when processing a (raw) image.
    When you use a Base Profile, the resulting color table in the final profile is a combination of the base profile's color table, plus the color table defined by any edits that you've added in the first tab (using the Chart Wizard counts as adding edits to that first tab).
    The reason you can get different and less smooth results if you apply the Chart Wizard iteratively is because you are applying lookup table after lookup table.  The current color table-building method used by DNG PE has some limitations regarding smoothness of color profiles if two color control points are placed too closely (this can happen with the Chart Wizard, or if you specify two points manually that are close to each other).  These problems can become more noticeable if you apply the DNG PE iteratively.

Maybe you are looking for

  • Cannot get Intel 4965AGN to work...

    Hi, I've been working on my wireless connection for the past night and I still can't get it to work. Here's what I get when I lspci | grep -i net it: Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN ... (rev 61) Ethernet controller:

  • Appset not appearing after import

    Hi Friends, We are on bpc75nw sp04. Custom appset(A) is correctly imported into target system. I'm able to see in backend(BW), but in fron-end(BPC admin/BPC excel) not appearing. Could any one suggest, what might be reason? How to know install user i

  • Have a model satelleite C55D-A C55D-A5108 Laptop need some info on it

    i have this nToshiba - Satellite 15.6" Laptop - AMD A6-Series - 4GB Memory - 750GB Hard Drive - Satin Black i need to make a recover dic does anyone know  how mamy cd i need or a flash drive i need ty

  • Wheres the N95-3 firmware upgrade to match N95-1 v...

    I have a N95-1 with v20 firmware and the changes in the camera software are like night and day as far as speed and operability of the camera.. Now I own a N95-3 and it is still on v11 firmware. The camera software is old and archaic worse then the or

  • How To Turn OFF Protected View In Office 2010 Using GPO

    How To Turn OFF Protected View In Office 2010 Using GPO