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

  • Home
  • SEARCH
  • 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 8250065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:45:59+00:00 2026-06-07T23:45:59+00:00

I am profiling an Objective C++ program and in the responsible caller it’s not

  • 0

I am profiling an Objective C++ program and in the responsible caller it’s not showing the exact method that created the object nor the releasing point, it only shows “CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long)”
the program am profiling is a game using cocos2d and most classes are C++ .mm. I know that xcode doesn’t fully support Obj-C++ Is that the reason why instruments is not showing enough info??

P.S I am using Xcode 4.3

  • 1 1 Answer
  • 0 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-06-07T23:46:00+00:00Added an answer on June 7, 2026 at 11:46 pm

    If the object itself is C++, use the Allocations instrument, click the “i” and try adjusting the configuration to “Identify C++ Objects.” If you’re using Leaks, I recommend instead using Allocations and Heapshot analysis. I find it much more powerful than the Leaks tool in most cases.

    That said, the dispatch() method may be obscuring the information, and this may be independent of the C++; it may simply be a limitation of Instruments when diving into the dispatch(). This happens sometimes.

    All that said, ObjC++ is not a good language to spread throughout a project. Write your low-level code in pure C++. Write your high-level code in pure ObjC. Use a thin glue layer of ObjC++ to tie them together. ObjC++ has many problems, from poor tool support to runtime performance issues compared to pure C++ or pure ObjC. It is glue; it is not substance.

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

Sidebar

Related Questions

After profiling a large game playing program, I have found that the library function
Profiling some computational work I'm doing showed me that one bottleneck in my program
while profiling a java application that calculates hierarchical clustering of thousands of elements I
I'm profiling some code, and cProfile reports that almost all the time is spent
I am currently profiling my node.js application.I found this blog: http://blog.nodejs.org/2012/04/25/profiling-node-js/ that suggests I
I have tried profiling my app, but found that TraceView isn't that user friendly,
Profiling my cpu-bound code has suggested I that spend a long time checking to
Profiling some code that heavily uses shared_ptrs, I discovered that reset() was surprisingly expensive.
while profiling NHibernate with NHProf I noticed that a lot of time is spend
I'm using the static code analyser in objective C and I found that using

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.