gwt application logging, profiling, benchmarking

2019-07-03 08:24发布

问题:

Is there a good methodology for logging/benchmarking/profiling a gwt application to identify bottlenecks?

Something like a timing/logging framework or similar.

回答1:

  • For logging, there's GWT.log and gwt-log
  • Benchmarking - the official docs have a nice section about this: http://code.google.com/webtoolkit/doc/1.6/DevGuideTesting.html#DevGuideJUnitBenchmarking, you can also have a look at this blog post

I especially recommend the last link - Firebug's profiling can be very helpful when combined with -style PRETTY.

And, in general, any profiling solution that works for Javascript, should work for GWT.



回答2:

IE8 has an excellent profiler too, extremely useful. It's call-tree mode is superb.

Of course, IE8 needs profiling tools far more than other browsers; it's a complete dog, performance-wise.