Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Broken backtraces in the Tegra System Profiler

Discussion in 'Android' started by cory_munky, Jul 27, 2016.

  1. cory_munky

    cory_munky

    Joined:
    Dec 10, 2014
    Posts:
    66
    I'm trying to profile thread stalls in my app. Profiling an android il2cpp build would be very useful to me right now even if I don't ship that build.

    Unfortunately, 99% of the function names in libil2cpp.so resolve to "Func at 0xHEXADDRESS"
    There's a good chance it's because the profiler needs the code to be compiled with "-fno-omit-frame-pointer -marm -funwind-tables"

    How do I modify the compiler settings used to compile the il's cpp?
     
    Last edited: Jul 27, 2016
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,741
    @cory_munky

    Have you tried using a development player build (in the Build Settings dialog)? I've talked with our Android team about this, and debug symbols should not be stripped from libil2cpp.so for a development player build.
     
    Yury-Habets likes this.
  3. cory_munky

    cory_munky

    Joined:
    Dec 10, 2014
    Posts:
    66
    That was it.

    I'd been using our custom build script for so long I forgot all about that.

    Thanks Josh!
     
    Yury-Habets likes this.