• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: realtime profiling-- instant gamma?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: realtime profiling-- instant gamma?


  • Subject: Re: realtime profiling-- instant gamma?
  • From: Andrew Pinski <email@hidden>
  • Date: Thu, 17 Oct 2002 23:10:06 -0700

Have you tried Apple's CHUD tools available on http://developer.apple.com/tools/debuggers.html?
Shikari will show you exactly where the time spent in the different parts of your code.

Thanks,
Andrew Pinski



On Tuesday, Oct 15, 2002, at 01:30 US/Pacific, arekkusu wrote:

Hi, I am interested in getting realtime visual feedback of how my CPU time is spent on different bits of my code. Many years ago, on another platform, I was able to do this very easily by changing either color palette entries or the system's border color register, around the code being profiled. The display would update instantaneously and profiling was simply a matter of watching how many scanlines the color was displayed for (assuming a realtime task, synced to VBL so that the color change is always in the same portion of the screen...)

Nowadays, we have 24-bit color, so no color palette to play with. And Sampler.app is sort of useful but visual feedback would be much more intuitive for me.

I am hoping there is a way to achieve this in OS X, perhaps with CGSetDisplayTransferByTable(). I could change the system gamma to i.e. red-scale around the code being optimized. However, it appears (at least on my TiBook) that the gamma is only updated after VBL, not instantaneously. I found that the old "MacGamma" sample code mentions:

"SetDeviceGammaRampXX may not return until the VBL following the call, depending on the display driver, this is due to the handling of the Control call by the driver."

Is there any way to force the gamma to update instantaneously? Short of writing my own display driver...

thanks,
-alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: realtime profiling-- instant gamma?
      • From: arekkusu <email@hidden>
References: 
 >realtime profiling-- instant gamma? (From: arekkusu <email@hidden>)

  • Prev by Date: Re: Seattle???
  • Next by Date: Re: NSLayoutManager vs BBEdit (Was Re: Carbon vs Cocoa arguments)
  • Previous by thread: realtime profiling-- instant gamma?
  • Next by thread: Re: realtime profiling-- instant gamma?
  • Index(es):
    • Date
    • Thread