Sorry - my mistake! That's not how you're supposed to use the memorymonitor. Try this:

    <include href="utils/diagnostic/memorymonitor.lzx"/>


Regards,
Max Carlson
OpenLaszlo.org

On 3/10/10 9:35 AM, ason wrote:
hello Max, thank you for the great info!

<frametimer/>  works as I want. Very useful.

but<memorymonitor/>  does not.

Compiler says " Unknown tag 'memorymonitor' "

--
minamotonoason(ason)


2010/3/11 Max Carlson<[email protected]>:
I'm not sure why that's failing - it might be a compiler issue with new
Stats()...

Note that there are some components built into OL already that may give you
what you want (minus the nifty graphs):

    <frametimer/>
    <memorymonitor/>


Regards,
Max Carlson
OpenLaszlo.org

On 3/9/10 10:51 PM, ason wrote:

Hi all,

I am trying to execute Flash's Stats on an OpenLaszlo app.
But the code does not work.

I must say that I dont know if this works or not.
Just a test.

But any ideas?

<?xml version="1.0" encoding="UTF-8"?>
<canvas proxied="false" bgcolor="0xeeeeee">
     <view>
       <switch>
         <when property="$as3">
           <passthrough>
             import flash.display.*;
             import net.hires.debug.*;
           </passthrough>
         </when>
       </switch>
       <handler name="oninit"><![CDATA[
         var vr = this.getMCRef();
         vr.addChild(new Stats());
      ]]></handler>
     </view>
</canvas>


minamotonoason(ason)
Japanese OpenLaszlo User


Reply via email to