• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Help on TPTP, and what is the most intuitive profiler for Eclipse?

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These are two questions in one.


I need to profile a Swing app, fast. I don't have the time for a big learning curve, just need something that works out of the box, intuitively. TPTP (a.k.a Hayades) does not seem to do that, it throws exceptions and its info does not come across to me as self-explanatory. OK, it helped me find the method that is the biggest offender, but I've sort of knew that... though the method does not calculate much on its own, it delegates to a 3rd party library, why did not TPTP show that? So now what, how do I do even higher granularity than that?

Should I stick to TPTP, or is there a simpler solution?

Thanks
 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strange, it shows that the biggest offender is MyClass.access$1(MyClass), but MyClass does not have the word "access" anywhere, nor does it have any method that takes MyClass as an argument. No object weaving I hope, as it's not a persistent entity, a Swing class. What's going on?
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a method generated by the compiler to allow an inner class in MyClass to access a private member of MyClass, either a variable or a method.
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Ernest. Check your MyClass and its inner classes - when a MyClass.InnerClass accesses Myclass's private member, compiler generates an additional method to access that member (it can't be accessed directly). Best way to improve performance is to make the field default (package) access.
 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the info! That's very valuable. Now, back to the profiler question... any way to profile under Eclipse with higher granularity and without crashing all the time? And with less learning curve than TPTP?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic