Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 863189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:16:13+00:00 2026-05-15T09:16:13+00:00

Using the Eclipse profiler, I am interested in number of allocated instances of classes

  • 0

Using the Eclipse profiler, I am interested in number of allocated instances of classes from java.lang (for instance String). I also want to know stuff like number of calls to String.equals() etc.

I use the “Object Allocations” tab and I shows all classes in my application and a count, but there is no mention of any standard java classes.

For instance, this silly code shows up in the Object Allocations tab as 1000 Foo, 7 byte[], 4 char[] and 2 int[]. Nothing else.

public static void main(String[] args) 
{
    Object obj[] = new Object[1000];
    for (int i = 0; i < 1000; i++) {
        new Foo();  // Some custom class
        obj[i] = new StringBuffer("foo" + i);
    }
    System.out.println (obj[30]);
}

It seems the profiler simply ignores everything that is in any of the java.* packages. The same applies to Execution Statistics as well.

Do I need to enable instrumentation for the core java classes or is there some setting I am missing here?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:16:14+00:00Added an answer on May 15, 2026 at 9:16 am

    If you’re using the same Eclipse profiler listed here you need to set the inclusion/exclusion filters up. In your case, you can add a particular package or class to the inclusion filter, or simply remove it from the exclusion filter pre-defined. I would go with the former as its the more conservative approach and will most likely have a lower impact on your application performance. Removing something from the exclusion filter may result it removing more than you intended or wanted, meaning that more code is instrumented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Eclipse/Subversive I commanded it to delete a branch of mine. Unfortunately it also
i'm using ECLiPSe programming logic system. i want to implement the yield method for
I am loosing my mind trying to build my NDK project from eclipse using
I am using eclipse EE in ubuntu by downloading the .tar.gz file from eclipse
Using Eclipse's PHP Profiler, I have discovered a bottleneck in my code on a
I am using Eclipse 3.7SR2 and I have an issue with the Java editor
Using Eclipse IDE. The line: getClass().getResource(/res/bitmaps/image.png); returns null . I have created the res
When using Eclipse over X-Windows on a remote shell (X port forwarding), is there
When using Eclipse PDT with XDebug to debug a PHP web application, is there
When using eclipse on ubuntu, for some reason it crashes/stops responding when loading an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.