Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18064] iOS: New Profiler does not generate function names

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 4.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterVishal Duggal
AssigneeUnknown
Created2014-11-20T21:45:51.000+0000
Updated2018-02-28T19:55:07.000+0000

Description

After the update of TiJSCore(TIMOB-11093) and titanium_profiler(TIMOB-17925) for 64 bit support the profiler is no longer emitting explicit function names. Most function calls show up as either (anonymous functions) or (program). This is a change in behavior from the old profiler behavior where the function names would show up.

Attachments

FileDateSize
buildTiCore_output.txt2014-12-02T02:06:48.000+0000489523

Comments

  1. Ingo Muschenetz 2014-12-01

    I'll need you to take a look at this.
  2. Matt Langston 2014-12-02

    Output from buildTiCore.sh
  3. Matt Langston 2014-12-02

    [~vduggal], [~ingo], here is my take on the profiler issue so far. I don’t know of a simple fix becuase I don’t yet know the root cause of the problem. I am not convinved that the problem is not with our changes to titanium_profiler. The new v20 tijscore fails to build for me, which I need to debug JavaScriptCore to see if the problem is there. The next steps are to understand why buildTiCore.sh fails on my MBP. There are 82 compiler errors before clang gives up, and the errrors don’t look simple. [~vduggal], please look at the output from buildTiCore.sh that I have attached to this issue as [^buildTiCore_output.txt]. For example:
       In file included from /Users/matt/Documents/Appcelerator/src/Appcelerator/tijscore/JavaScriptCore/heap/BlockAllocator.h:37:
       /Users/matt/Documents/Appcelerator/src/Appcelerator/tijscore/JavaScriptCore/heap/HeapBlock.h:52:26: error: no template named 'DoublyLinkedListNode'; did you mean 'DoublyLinkedList'?
       class HeapBlock : public DoublyLinkedListNode<T> {
                                ^~~~~~~~~~~~~~~~~~~~
                                DoublyLinkedList
       
    [~vduggal], I will need to work with you in the morning to understand your build system. It is foreign to me and different from how Apple builds their JavaScriptCore. I need a JavaScriptCore Xcode project to perform further debugging, so you will have to help me integrate your build system into Apple's JavaScriptCore Xcode project.
  4. Matt Langston 2014-12-02

    [~vduggal] can you please add a test case that reproduces the problem?
  5. Ingo Muschenetz 2014-12-11

    Deferring this out of 3.5.0, as clicking on the function names still takes you to the correct line.

JSON Source