Skip to main content
Participating Frequently
June 16, 2008
Question

documentation of flash.trace.Trace

  • June 16, 2008
  • 3 replies
  • 2761 views
HI,
could we get a little more documentation on that class ?

right now I can use it by default
import flash.trace.Trace
Trace.setLevel( Trace.METHODS_AND_LINES_WITH_ARGS, Trace.OFF );


or use my own traceListener function
import flash.trace.Trace

public function traceListener( line:String, index:int, method:Sring,
args:String ):void
{
trace( "@"+index + " - " + line );
trace( method+"("+args+")" );

}

Trace.setListener( traceListener );
Trace.setLevel( Trace.METHODS_AND_LINES_WITH_ARGS, Trace.LISTENER );


but on the default traces like
2928822 AVMINF: MTHD global/trace () @ 0x0B1603C0

I would like to know if with a custom trace listener
if we can access 0x0B1603C0 ? (or is this fetched from the stack trace
somehow ?)
also the 2928822 is it a simple getTimer() or a another low level timer ?

my last question would be if we use Trace.FILE as the listener target
does it gonna write the traces in the log defined in mm.cfg or some other file ?

cheers,
zwetan
This topic has been closed for replies.

3 replies

matt_chotin
Inspiring
June 20, 2008
Ooh, sweet!<br /><br /><br />On 6/19/08 5:56 PM, "zwetan" <member@adobeforums.com> wrote:<br /><br />A new message was posted by zwetan in<br /><br />Developers --<br /> documentation of flash.trace.Trace<br /><br />Hi Matt,<br /><br />><br />> The Player team considers this class completely undocumented so I doubt we'll get much more in terms of official help.<br />> I'm guessing you can't get access to anything at memory addresses, it's really just informational. And the number is probably<br />> an internal timer number to provide uniqueness, though I wouldn't know for sure.<br />><br />> File probably goes to a hardcoded path would be my guess, I'm betting you can't really assign the location that it's going to write to.<br />><br />> Sorry, not very helpful, but this class wasn't really meant for much in the way of consumption right now.<br />><br /><br />thanks you to have looked into it,<br />but in fact searching for other things, I realized that Trace was aslo<br />defined in the extensions for Tamarin<br />and documented there :)<br /><br />http://hg.mozilla.org/tamarin-central/index.cgi/file/e774dfe22b39/extensions/Trace.as<br /><br />cheers,<br />zwetan<br /><br /><br />------------------------------------------------------<br />View/reply at <a href=http://www.adobeforums.com/webx?13@@.59b589ad/1><a href=http://www.adobeforums.com/webx?13@@.59b589ad/1><br />Replies by email are OK.<br />Use the unsubscribe form at <a href=http://www.adobeforums.com/webx?280@@.59b589ad!folder=.3c060fa3><a href=http://www.adobeforums.com/webx?280@@.59b589ad!folder=.3c060fa3> to cancel your email subscription.
_zwetan_Author
Participating Frequently
June 19, 2008
Hi Matt,

>
> The Player team considers this class completely undocumented so I doubt we'll get much more in terms of official help.
> I'm guessing you can't get access to anything at memory addresses, it's really just informational. And the number is probably
> an internal timer number to provide uniqueness, though I wouldn't know for sure.
>
> File probably goes to a hardcoded path would be my guess, I'm betting you can't really assign the location that it's going to write to.
>
> Sorry, not very helpful, but this class wasn't really meant for much in the way of consumption right now.
>

thanks you to have looked into it,
but in fact searching for other things, I realized that Trace was aslo
defined in the extensions for Tamarin
and documented there :)

http://hg.mozilla.org/tamarin-central/index.cgi/file/e774dfe22b39/extensions/Trace.as

cheers,
zwetan
matt_chotin
Inspiring
June 17, 2008
Hey Zwetan,<br /><br />The Player team considers this class completely undocumented so I doubt we'll get much more in terms of official help. I'm guessing you can't get access to anything at memory addresses, it's really just informational. And the number is probably an internal timer number to provide uniqueness, though I wouldn't know for sure.<br /><br />File probably goes to a hardcoded path would be my guess, I'm betting you can't really assign the location that it's going to write to.<br /><br />Sorry, not very helpful, but this class wasn't really meant for much in the way of consumption right now.<br /><br />Matt<br /><br /><br />On 6/16/08 5:22 AM, "zwetan" <member@adobeforums.com> wrote:<br /><br />A new discussion was started by zwetan in<br /><br />Developers --<br /> documentation of flash.trace.Trace<br /><br />HI,<br />could we get a little more documentation on that class ?<br /><br />right now I can use it by default<br />import flash.trace.Trace<br />Trace.setLevel( Trace.METHODS_AND_LINES_WITH_ARGS, Trace.OFF );<br /><br /><br />or use my own traceListener function<br />import flash.trace.Trace<br /><br />public function traceListener( line:String, index:int, method:Sring,<br />args:String ):void<br />{<br /> trace( "@"+index + " - " + line );<br /> trace( method+"("+args+")" );<br /><br />}<br /><br />Trace.setListener( traceListener );<br />Trace.setLevel( Trace.METHODS_AND_LINES_WITH_ARGS, Trace.LISTENER );<br /><br /><br />but on the default traces like<br /> 2928822 AVMINF: MTHD global/trace () @ 0x0B1603C0<br /><br />I would like to know if with a custom trace listener<br />if we can access 0x0B1603C0 ? (or is this fetched from the stack trace<br />somehow ?)<br />also the 2928822 is it a simple getTimer() or a another low level timer ?<br /><br />my last question would be if we use Trace.FILE as the listener target<br />does it gonna write the traces in the log defined in mm.cfg or some other file ?<br /><br />cheers,<br />zwetan<br /><br /><br />------------------------------------------------------<br />View/reply at <a href=http://www.adobeforums.com/webx?13@@.59b589ad><a href=http://www.adobeforums.com/webx?13@@.59b589ad><br />Replies by email are OK.<br />Use the unsubscribe form at <a href=http://www.adobeforums.com/webx?280@@.59b589ad!folder=.3c060fa3><a href=http://www.adobeforums.com/webx?280@@.59b589ad!folder=.3c060fa3> to cancel your email subscription.