Automating Instruments

0

Posted by Jaime | Posted in Coding | Posted on 08-03-2013

Tags: ,

I actually automate Instruments to get finer grain information of what an application is actually doing.

To automated Instruments, according to Apple’s documentation, all you need is the DTPerformanceSession.framework… but, you actually need more than that, and you have to find where the dependencies are located.

Here are all of the libraries you need:
DTInstrumentsCP.framework
DTMessageQueueing.framework
DTPerformanceSession.framework
DTXConnectionServices.framework
InstrumentsSupport.framework

And here is where they are located:
/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/DTInstrumentsCP.framework
/Applications/Xcode.app/Contents/SharedFrameworks/DTMessageQueueing.framework
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/DTPerformanceSession.framework
/Applications/Xcode.app/Contents/SharedFrameworks/DTXConnectionServices.framework
/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsSupport.framework

Bitten by ImageIO and libTIFF

0

Posted by Jaime | Posted in Coding | Posted on 12-12-2012

Tags: , , , , , , , , ,

I had a project I worked on where I couldn’t debug my Application with Xcode 4.5 because there was a conflict between the libTIFF I was using in one of my modules and the copy of libTIFF included with the ImageIO framework.

It turns out that the two libTIFF libraries were actually different, so, for the small test project I created, I decided to statically link in the code I needed from libTIFF so that dlopen wouldn’t supplant the copy of libTIFF ImageIO needed with my copy.

References:
http://lists.apple.com/archives/xcode-users/2008/Jan/msg00019.html
http://lists.apple.com/archives/x11-users/2007/Mar/msg00003.html

Spread the love

0

Posted by Jaime | Posted in Funny, What's New | Posted on 04-12-2012

Tags:

When was the last time you gave the Internet a great big hug? Seriously. Think about it… you love the Internet :)

Google C++ Testing Framework and C++11

0

Posted by Jaime | Posted in Coding | Posted on 01-10-2012

Tags: , ,

I’ve been using Google’s C++ Testing Framework for some time now, but as soon as I tried to use C++11 in Xcode, I was met with some issues about the tuple header file not being found.

Unfortunately for me, that means I had to leave that header out of my project using the following option:
GCC_PREPROCESSOR_DEFINITIONS = GTEST_HAS_TR1_TUPLE=0

Finding the “file in use” culprit in Mac OS X

0

Posted by Jaime | Posted in Tip | Posted on 28-09-2012

Tags: ,

Thank to a tip at MacWorld, I was able to find out what process was locking a file I wanted to delete.

lsof | grep [whatever]

Spaces, where are you?

0

Posted by Jaime | Posted in Uncategorized | Posted on 31-08-2012

Tags: , , ,

I took me long enough to figure out how to do this, but MacLife on has it all spelled out.

Duplicating projects and Xcode4

0

Posted by Jaime | Posted in Coding | Posted on 28-08-2012

Tags: , ,

I found that when you duplicate a Xcode project, say to make experimental changes you don’t want in the original project, you find that the newly duplicated project actually points to the original project.

That is because there is a workspace file within the xcodeproj bundle, project.xcworkspace, that contains the name of the original project, so you may want to edit that workspace file in order for it to point to the newly duplicated project.

OmniGraffle supports UNIX keyboard commands

0

Posted by Jaime | Posted in Tip | Posted on 20-08-2012

Tags: , , ,

Well, at least ctrl+a and ctrl+e. I haven’t tried anything else, but I was surprised to find out that these even work within OmniGraffle.

Checking out a file in Perforce using Xcode’s 4 behaviors

0

Posted by Jaime | Posted in Coding | Posted on 27-07-2012

Tags: , , ,

Perforce published a knowledge base article on how to use Xcode’s built in behaviors to check out a file: Automatically checking out files for edit in Xcode 4.3

This is nifty and similar to an article I saw posted on stackoverflow by user Mark Thalman.

Vector drawing programs

0

Posted by Jaime | Posted in Review | Posted on 26-07-2012

Tags: , ,

Matt Inman made a video where he discussed how he does his illustrations for his website: www.theoatmeal.com.

If you haven’t seen any of this stuff, I would recommend that you only do it while you are home because his site is a big productivity killer.

Anyway, it got me very interested in doing illustrations again, but I’ve usually only do that by hand and I didn’t feel like spending $800 on Illustrator.

Off to Wikipedia!

Wikipedia has a listing vector programs available; some good, some bad; some just ok. I have been using Inkscape for a while, but I’m not too crazy about it.

Then I found Sketch by Bohemian Coding.

This program fits the bill!

It’s affordable, filled with a lot of features and actually works… which unfortunately most other programs don’t do.

My only gripe with Sketch is that it cannot open SVG based drawings or Illustrator files, but that I something I leave to Inkscape to do… though I would really love Sketch to do that instead.

So if you are looking to do vector based drawing at a reasonable price, check out Sketch.