Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Profiling A Simple Application
Profiling A Simple Application [message #71065] Tue, 16 May 2006 21:35 Go to next message
Eclipse UserFriend
Originally posted by: luke.lukeshannon.com

I am curious about the memory cost of the replaceAll operation and was
hoping to get some answers using TPTP.

I am confused that I am not seeing String, StringBuffer or Pattern objects
being created in memory when I run my test.

I am running the default profiling settings on a class with a main method
that does this:

for (int i = 0; i < 100000; i++) {
String hamletMod = hamlet.replaceAll("To", "2").replaceAll("and", "&");
System.out.println(hamletMod);
}

In the Basic Memory Analysis -> Instances View I am seeing 80% of my
instances [int], no Strings or StringBuffers or Pattern Classes?

I know this is a pretty vague post but if anyone verify if I am using TPTP
in the correct way to find out the information I am looking for? Any ideas
why I am not seeing some of the classes I expected in the instance report?

Thanks,

Luke
Re: Profiling A Simple Application [message #71168 is a reply to message #71065] Wed, 17 May 2006 16:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 005B3ABB85257171_=
Content-Type: text/plain; charset="US-ASCII"

You're probably filtering these classes out. See:
http://www.eclipse.org/newsportal/article.php?id=2046&gr oup=eclipse.tptp#2046


Navid Mehregani
--=_alternative 005B3ABB85257171_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">You're probably filtering these classes
out. &nbsp;See: http://www.eclipse.org/newsportal/article.php?id=2046&am p;group=eclipse.tptp#2046</font><font size=3>
</font>
<br>
<br><font size=3>Navid Mehregani</font>
--=_alternative 005B3ABB85257171_=--
Re: Profiling A Simple Application [message #71188 is a reply to message #71168] Wed, 17 May 2006 17:34 Go to previous message
Eclipse UserFriend
Originally posted by: luke.lukeshannon.com

Yep, that was it. Thanks.
Previous Topic:Large Application - No data is available for display
Next Topic:profile plugin
Goto Forum:
  


Current Time: Fri Apr 26 08:00:23 GMT 2024

Powered by FUDForum. Page generated in 0.03223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top