简体   繁体   中英

Qt: Profiling on OS X using Instruments (Mavericks)

I've been trying to profile an application I've written under OS X Mavericks using Instruments following various bits of information I've found online but I'm not able to get any information out of it. I've tried making sure I've got the latest version of Instruments, I'm running Qt 5.1.1, and Instruments will actually work for profiling Allocations and Leaks, just not for Time Profiling.

Has anyone managed to get the CPU time profiling working with Mavericks?

EDIT: As it turns out whilst I thought installing the latest version of XCode would give me the latest version of Instruments, it had also left the previous version of Instruments installed.

As per your realization, it seems XCode will leave the previous Instruments installed. I would personally follow the following steps:

  • Remove old version.

  • Remove the data left behind.

  • Install the new version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM