How to start debugging slow Polymer perf? - polymer

I'm writing a Polymer based app and at some point the UI has gotten really slow to render and really slow to scroll.
Does anyone know of any resources or tips on the best way to get started debugging polymer performance issues?

The Chrome Javascript Profiler is a pretty good place to start: https://developer.chrome.com/devtools/docs/cpu-profiling
Also, try vulcanizing your components to speed up initial resource loading.

Related

Used Code Plugin in Eclipse

I tried to analyze a swing application. It's an old project and it has been growing over years, so it's very hard to read the code. Now we should redesign the application.
Now I'm looking for an Eclipse plugin which could me support to understand this application. Here what kind of plugin I'm looking for:
start application from Eclipse in debug mode
I run in the application to a point
I start the record in Eclipse plugin
I run some kind of business logic in the application
I stop the record
the tool shows me, which code is used or not during the record
Does someone know if this kind of plugin exists?
Cheers
Julia
Not a specific plugin, but you can get something what you want by smartly placing breakpoints:
For example to find where the action listener code is for a button, set a break point in the ActionEvent constructor just before you press the button. Then you can step forward until you get to the listener.
You could also use VisualVM (or other profiler) to do CPU sampling while you take your action and then look in which code the CPU time was spent (in the EDT for the Swing GUI specifically).
It sounds like a coverage tool that can be switched on and off at runtime. I don't think this is possible with Emma or Cobertura; best guess is to use these for unit tests (or small test applications that only use partial functionality) and hide any unused types to get partial views. But that may not work well when you want to understand GUI actions and responses.
Even if it is not exactly part of your question I would recommend to have a look into the X-Ray plugin which helped me a lot with a legacy application.
Oh, and Eclipsecolorer Profiler helped... but the project is not active any more.

Confusion on Mobile App Development

After reading tons of tutorials and opinions, I'm more confused than ever on what could be a solid combination of tools to build a cross-platform client-server app, where the bulk of the cpu work is done on the server. The client just needs to push/pull data from the server on a regular interval, and display among other things a Google map with some moving markers. The logic is quite simple, but I can't really figure out the best way to do what I want, especially since I'm just an amateur.
So I've decided to set up Eclipse with PhoneGap, but looking for decent samples I found about AppLaud and AppLaudCloud. And then Sencha Touch. And then Mono (I'm familiar with .NET). And Appcelerator... I'm lost!!!
Could anyone please tell me where to start? Or better, which solution is the easiest to set up and work with while retaining flexibility?
Many thanks
Chris
For whatever is worth, here is what I used to build a couple of webapps successfully: Dreamweaver CS5.5 + JQuery Mobile + PhoneGap.
This solution allowed me to easily design the app's UI and at the same time write the PHP server code effortlessly. In my opinion, it's the easiest tool for a beginner as the Dreamweaver environment takes care of pretty much everything. After watching a few free tutorials about DW, I was up and running very quickly.

Real time console output in application via trace

Is it somehow possible to output the traces in a deployed application to a display element?
I'm aware of the debug deploy in Flash Builder, but unfortunately I can't convince my iPad to work with that, so a real time trace output in my application would be really great.
Edit: On second thought, a full console output would probably be best. The flash console kostik suggested looks pretty good, so making it display the console output would be ideal.
Highly recomend monsterdebugger and flash-console however sometimes you just need to integration offered by an ide. Flash develop has some nice debugging features however I have come to love Intellij Idea's new features for flash debugging. Here is a peek of some recent gems http://blogs.jetbrains.com/idea/2011/12/features-of-flex-debugger/
http://code.google.com/p/flash-console/

as3 performance

Im trying to experiment with actionscript using flashDevelop and looking at different tutorials online. But when i try to copy and paste code from a tutorial and run it myself the performance it extremely slower. For example i was looking at this tutorial about particles http://active.tutsplus.com/tutorials/effects/squeezing-more-juice-out-of-the-flash-player/ that shows a warterfall effect at the bottom it runs fine in my browser but if i copy the code and run it in flashDevelop it runs really slow even though its the same code. I have no idea why and cant find anything online.
Thanks for any help
They had mentioned a point in the Speed Test #4.
CAUTION: The regular createMovieClipCircles() method is so inefficient
that you should not let it run for more than a few seconds. The Flash
Player will continue to slow down until it eventually grinds to a
halt.
Have a look there. :)
Perhaps it's the extra overhead of being in debug mode in FlashDevelop? Try opening the swf that was compiled in your browser or in Flash Player and see if it still runs slow?

Flash Builder bug?

Irritatingly, Flash Builder refuses to implement any changes I make to the program when I run it. I can't find any documentation of this anywhere online after a brief googling, just wondering if anyone has come across this problem before and/or found a solution? I don't want to have to export a release build every time I want to check if any changes have been implemented successfully (I'm just assuming that'd work)
It happened to me once before but I overcame this problem simply by starting a new project as there wasn't much of any significance, and couldn't easily fix it.
It's pretty much as simple as it sounds tbh, having returned to my computer a couple of hours after leaving it I find any changes to any part of the code have no impact on what is displayed when I go to run...
Any insight would be much appreciated
Thanks
Josh
It could be the cache of your browser. Clear your cache and see if that works..
It could also be because you have classes that are compiled in external swf's. If you compile in Flash Builder, you're not persee recompiling those classes. Instead, compile the external swf which has links to those classes.
You'd think if this were a bug in Flash Builder, people would be complaining about it a bit more often, check that your browser is updating properly, most likely you've got the SWF stuck in your browser cache.
Check the "clear application data on each launch" in Run/Debug Configuration window.
This will clear and uninstall existing app installed in your test device, so every new launch will have clean build.
Tips : Make sure to cmd/ctr + B first, In every run/build.