debugger/profiler (was: [haXe] Animation performace issues)
Thomas Reilly
treilly at adobe.com
Sun Aug 26 22:06:51 CEST 2007
Dubious honors to be sure.
We've added new APIs that expose a simple builtin sampling
infrastructure. I've attached the definitions (they'll be showing up in
Tamarin's hg repository soon, don't pay too much attention to the ASDocs
they are a work in progress). These API's could change so be sure to
check out the real do
Basically we internally log samples every time an object is allocated or
freed and where we are execution wise every millisecond. Any local
trusted swf can access these samples with a simple
flash.sampler.getSamples() API. It returns a special object that can
be iterated over with for each to get each flash.sampler.Sample. Each
sample contains a timestamp and a stack trace. Allocation events show
up as subclasses of Sample, NewObjectSample and DeleteObjectSample.
Other functions in there exist to make it possible to construct a
complete heap graph and find out the invocation count of any function.
The stack traces are dependent on the compiler generating debug,
debugFile and debugLine opcodes. That's about it.
Debugging is a little more tricky, I don't know much about it except to
say its not nearly as simple as the profiler. What I'd do is wait for
the Flex SDK to show up as open source and take a look at the fdb source
code.
-----Original Message-----
From: haxe-bounces at lists.motion-twin.com
[mailto:haxe-bounces at lists.motion-twin.com] On Behalf Of Mark
Winterhalder
Sent: Saturday, August 25, 2007 5:48 AM
To: The haXe compiler list
Subject: Re: debugger/profiler (was: [haXe] Animation performace issues)
On 8/25/07, edA-qa mort-ora-y <eda-qa at disemia.com> wrote:
> Thomas Reilly wrote:
> > This probably won't help you but there's a profiling API built into
the
> > new Debugger player. Flex Builder has a nice UI built on it. If
> > anyones interested in using the (soon to be documented) API to build
> > a profiler I'd be the one to talk to. The architecture would allow
> > it to be implemented entirely in haXe believe it or not.
>
> If you have the documentation on how to hook into the debug player I
> think I'd be happy to build a profiler and debug system within haxe.
Hello Thomas, and congrats -- you're the first to post onto this list
from an adobe.com address, according to my archive. :)
Could you give us a short (or not so short if you like) overview about
how it will work?
Also, will the debugger be documented, too, or will we have to wait for
the sources? A while ago I have tried to use fdb with a haXe compiled
SWF but failed miserably.
Mark
--
haXe - an open source web programming language http://haxe.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sampler.as
Type: application/octet-stream
Size: 16520 bytes
Desc: Sampler.as
Url : http://lists.motion-twin.com/pipermail/haxe/attachments/20070826/6c0204a0/Sampler-0001.obj
More information about the Haxe
mailing list