This is interesting. dsymutil does approximately the same thing as what Shark does. Shark should not run dsymutil as it is an optional step. Before dsymutil is run, the debugging information is stored in the .o's and is referenced by the main binary. dsymutil reads that debugging information and aggrigates it into a dsym. The information contained within should be unchanged.
To debug the issue, I will need a copy of the entire build folder, the final binary, and the path of the root of the build folder. Please file a bug report and attach those.
Rick
Sent from my iPhone On Dec 29, 2008, at 11:43 AM, "Eric A. Borisch" < email@hidden> wrote: Rick,
I've found that by running 'dsymutil test' after the linking step, creating a .dSYM bundle, I get a source browser again in Shark. Some things are still off (I've had a few references to line #s past the end of a file) but it's a step in the right direction...
Any thoughts or suggestions on your end? (Or from others on the list?) It seems shark could do this step (or the equivalent) automatically?
Thanks, Eric
On Thu, Dec 18, 2008 at 5:30 PM, Rick Altherr <email@hidden> wrote:
This _should_ work. What version of Shark are you using? I will try to get a copy of ICC 11 to test.
Rick
On Dec 18, 2008, at 2:24 PM, Eric A. Borisch wrote: Is there any way to get the source code view working in shark with Intel-compiled (icpc) code?
I've tried, for example,
test.cpp (A make-work for the CPU exercise...) --- #include <iostream>
using namespace std;
int main(const int argc, const char * argv[]) { uint64_t j = 1; for (uint64_t i=0; i < 1E10; i++) j = j * 7;
cout << j << endl; // Don't care, but don't optimize me away! } --- Compiled via: icpc -o test.o test.cpp -g -O0 -debug full -c && icpc -o test test.o -g -debug full
And then launched with shark for time profile; I get no source code browser, and I have to turn off callstack mining to get any results at all..
Any suggestions?
Compiler version: Intel(R) C++ Compiler Professional for applications running on Intel(R) 64, Version 11.0 Build 20081105 Package ID: m_cproc_p_11.0.056 Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
Thanks,
_______________________________________________
Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
-- Rick Altherr Architecture and Performance Group
-- Eric A. Borisch email@hidden
|