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 8094991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:58:33+00:00 2026-06-05T20:58:33+00:00

In my app I see terrible performance when I add some custom components to

  • 0

In my app I see terrible performance when I add some custom components to a UIImageView. It’s most likely the aforementioned custom components and they will need to be improved upon, but I’d like to be able to measure said improvements down the road. I’d also like to see how many times the UIImageView is drawn during the animation of a particular view.

One strategy that I’ve kicked around is subclassing UIImageView (only for the purpose of benchmarking) and having overridden ‘draw’ methods in my subclass log something and then call the super class’s method.

This would be fine, save for drawRect won’t be called for subclasses of UIImageView. Are there ‘drawing’ methods for UIImageView that I could override in this manner?

In theory, I could accomplish something similar by substituting a subclass of UIImageView with a subclass of UIView, but this will become a bit more invasive and I’d only like to do this as a last resort.

Finally, am I down a rabbit trail and there’s a really obvious solution (or tool) staring me in the face? I know Instruments can provide some profiling in terms of frame rates in this area, but I don’t see a solution to my problem with my limited knowledge of the tool.

  • 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-05T20:58:36+00:00Added an answer on June 5, 2026 at 8:58 pm

    Use Instruments.

    It’s made for these things. You even said it yourself.

    The "Instruments User Guide" is a good place to start if you’ve never used it before.

    Learning how to use instruments is time well spent. You will always have use for it when performance tuning your app, looking for memory leaks, etc.


    If you really are determined to know the execution time of a method then you could have a look at DTrace. It’s very powerful but a much harder than Instruments. You can also use it to build your custom tools in Instruments.

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

Sidebar

Related Questions

I see some app on Play Store, when install these apps auto add an
I see a terrible performance while trying to play videos with QtMobility 1.2.0 and
I have a problem with building performance profile for my .net web app See
So I was playing with my MS SQL Server 2008 app to see how
I install windows phone 7.1 sdk. And then I cant see phone app.in VS10
See http://support.microsoft.com/kb/312629/EN-US/ I am using reponse.direct in my app as well and I am
Coming from ASP.NET into WindowsForms app development I was expecting to see the similar
In the Settings app when you select a Wi-Fi network you can see a
My app has a tab based layout. Before users can see the main screens
I'm building a django app and I can't get the templates to see the

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.