Error when using profiler

43 views
Skip to first unread message

Nathan Hüsken

unread,
Feb 22, 2015, 7:52:27 AM2/22/15
to haxe...@googlegroups.com
Hey,

There is no issue tracker on
https://bitbucket.org/yar3333/haxe-profiler, so I am reporting here.

When building a class with: @:build(Profiler.buildAll()), I get:

/usr/lib/haxe/lib/profiler/1,0,0/profiler/Instance.hx:341: characters
20-29 : Unknown identifier : exception

Best,
Nathan

signature.asc

Yaroslav Sivakov

unread,
Feb 23, 2015, 8:07:53 AM2/23/15
to haxe...@googlegroups.com
Thanks Nathan! Fixed.

Nathan Hüsken

unread,
Feb 23, 2015, 9:29:20 AM2/23/15
to haxe...@googlegroups.com
Nice!
And here comes the next thing :-).

If I use "super" in a function, I get errors like these:

<position> : Cannot access super inside a local function

I do not know if this is fixable or if I have to modify my code not to
use super?
Have to think how I can do that ...
signature.asc

Yaroslav Sivakov

unread,
Feb 23, 2015, 9:38:41 AM2/23/15
to haxe...@googlegroups.com
Sorry, this is known limitation: profiler wrap methods with it's
measure() method, so super() call become inside function.
So, if you want to profile method with a super() call - just mark that
method with @:noprofile to avoid automatically wrapping and use direct
call Profiler.begin()/Profiler.end() inside method.

23.02.2015 17:29, Nathan Hüsken пишет:

Nathan Hüsken

unread,
Feb 23, 2015, 9:48:52 AM2/23/15
to haxe...@googlegroups.com
Well, I can replace super by the superclass name, which is for my case
acceptable.

But now for linux I get this error:

/usr/lib/haxe/lib/profiler/1,0,1/profiler/Instance.hx:286: characters
62-66 : On static platforms, null can't be used as basic type Float
/usr/lib/haxe/lib/profiler/1,0,1/profiler/Instance.hx:293: characters
19-23 : On static platforms, null can't be used as basic type Float
/usr/lib/haxe/lib/profiler/1,0,1/profiler/Instance.hx:312: characters
16-20 : On static platforms, null can't be used as basic type Float

(for flash, it seems to work).

Best,
Nathan
signature.asc

Yaroslav Sivakov

unread,
Feb 23, 2015, 10:35:20 AM2/23/15
to haxe...@googlegroups.com
For that error need more details. I enable issue tracker, so, add issue
there, please: https://bitbucket.org/yar3333/haxe-profiler/issues

23.02.2015 17:48, Nathan Hüsken пишет:
Reply all
Reply to author
Forward
0 new messages