• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I profile a j2se application to record all the strings created  RSS feed

 
ying lam
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a Java application, and I want to record all the content of each String that it creates. How can I do that? Can a profiler do that? My understanding is a profiler can only record the number of String created, not the content of each string.

Thanks for any help.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some products do indeed record this kind of information (when you choose the appropriate options, of course), but you have to realize that running an application this way will be very slow and will require lots of extra memory.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!