Flash Starling + Profiler

Hi, I am very new to intellij Idea but am really liking it. I have a problem however, I am making a Flash game that uses the Starling lib, when trying to to Profile the game, nothing is displayed, the Live instances show up but I cant do anything in my games.

Has anyone else experienced this?

Thanks,

Adam

16 comments
Comment actions Permalink

Hi Adam,

Just to be clear. Nothing is displayed. But your game is running normally? Am I right?

Do you see "Loading..." or “Waiting for profiling agent to connect…”?

Best,
Fedor

0
Comment actions Permalink

I get a white screen whith the Starline fps counter in the corner.

When i click on th elive object text in the Profiler window andother window pops up with a list off all my current classes and methods.

Thats all i know.

Thanks for your help.

0
Comment actions Permalink

Actually i think I am missing something completly...

I dont get any of the screen listed here: http://blogs.jetbrains.com/idea/2012/01/profiling-cpu-in-flash-and-flex-applications-in-intellij-idea/

Is there any more information somewhere? Also what does the "scope" drop down do? I have selected it but am now stuck in an etiral loop of popups that are asking me to choose a Base Class but nothign seems able to be selected, and when i close it it pops back up again :( I have to quit IntelliJ to stop it.

0
Comment actions Permalink

We changed layout. There are no such windows now. About scopes you can read here: http://www.jetbrains.com/idea/webhelp/scopes.html

It is very strange behavior. Maybe the problem is in the library. I'll try to profile some Starline examples to reproduce the problem.

0
Comment actions Permalink

Thanks, let me know if you can get it to work and if so then it is realted to my seltup...

0
Comment actions Permalink

Nope. It is working for me. I've succefully profiled the sample from STARLING_ROOT/samples/demo folder. Can you check if you are able to profile it too?

0
Comment actions Permalink

Hi Fedor, Thanks for taking the time to see whats wrong. Would you be able to zip up your test project so I can see how it is all set up. I think the problem may be how I have set up my project, I been unising intelliJ for less than a week so it would be great to see if i have set everything up correctly.

Thanks,

Adam

0
Comment actions Permalink

Here is it.

Best,
Fedor



Attachment(s):
demo.zip
0
Comment actions Permalink

Hey! Thanks for uploading the demo, it all works and I now have it working on my project.

I found out I was including the library incorrectly. I was including all my libraries (starling etc...) as "Dependacies" when (surprise suprise) they should have been included as "Libraries".

Thanks for you help, both with the profiler and with helping me with intellij!!!

0
Comment actions Permalink

Great! Develop with pleasure! :)

0
Comment actions Permalink

Hi, Adam,
now it's my turn to continue discussion :)
I'm afraid I don't understand the configuration error that you have made. I'd like to make IntelliJ IDEA more user friendly and self-documented and to improve usability, so that new users do not make errors like yours. Can you please describe what confused you?

0
Comment actions Permalink

HI, Alexander.

I think what I did wrog initially (apart from not reading the manual) was to try and include my library without setting it to be "Raw Actionscript", I left it with the default "Library sources", therefore it only looks for swc and ane's and not the raw code, thus it is not included. Because this did not work I tried the next option and was able to get the project to compile by including my libraries as a "Dependancy". This seemed to work but when using the profiler it failed so I thought it might be related to the libraries because i didnt feel that I really knew what I was doing.

I am a longer term Flash Develop user but am now seeking something more advanced in terms of building AIR apps. Typically in Flash Develop project setting, you can choose to included folders as libraries, this then included all the raw actionscript. Then through the project window you click to added the swcs manually.

I think the main confusion for me was "Modules", I was not sure if i had to include my libraries as a new "module", but i now think i understand that they would only be modules if there were to be compiled to a different target.

And then there are "Artifacts" I still do not know what these are.

When I referer to "Libraries" i really mean external code, wether this had been bundled into a swc or still in its raw form, and I tend to use the raw form mostly.

Thanks

Adam

0
Comment actions Permalink

Artifacts are mainly for packaging compilation result to jar/war/ear or just to copy to external folder for further deployment to the server or smth similar. I вщтже think you need it. AIR packaging is available under Build | Package AIR Application.

By the way good idea is to look for IntelliJ IDEA capabilities via 'Find Action' action (Ctrl+Shift+A).

I explained a bit more about Libraries in the second thread.

But I still don't understand what 'including my libraries as a Dependancy' can mean. Flash build configurations has a list of dependencies, and it can depend on other build configuration or on libraries.

0
Comment actions Permalink

Ah, I mannually added my "3rd party libraries" like you would add a new Flex sdk I think... Project Setting > Modules > Dependencies > + icon and add new Library.

0
Comment actions Permalink

Libraries in IntelliJ IDEA can be of global level, project level or module level (actually build configuration level). The only difference in levels - is convenience for reusing already configured library. Global library can be reused across different projects, project library - across modules and module library can't be reused. That's the only difference. SWC files or raw AS files configured as library classes are used for code highlighting and compilation. Sources and documentation give only auxiliary information for quick doc popup, jump to source etc.

0
Comment actions Permalink

Hi Fedor,

I have an issue with profiler Live Objects, it displays "Loading..." and nothing else all time.
Though CPU profiling works fine.
Are there any ideas how to fix this?

Thanks,
Michael

0

Please sign in to leave a comment.