Search Unity

Intel VTune function names

Discussion in 'Formats & External Tools' started by emrys90, Jun 20, 2018.

  1. emrys90

    emrys90

    Joined:
    Oct 14, 2013
    Posts:
    755
    I can't seem to figure out how to get it to show method names for my code. It seems to work fine for showing any Unity internal method names, just not any of my own code. I've tried "Copy PDB files" and using a dev build as well, but no luck. I haven't been able to find any info online about using VTune with Unity.

    Is it possible to use VTune to profile my own code?
     
  2. NVriezen

    NVriezen

    Joined:
    Oct 5, 2015
    Posts:
    46
    I was wondering this as well. Turns out there is a video on YouTube from Intel which explains this very quickly.

    In short:
    - Tick Development Build and Copy PDB files in the Build Settings before building
    - Make sure to include -profiler-enable-vtune-markers in the "Application parameters" in VTune when setting up an analysis
    - Also set Use application directory as working directory in VTune just below the "Application parameters" field.

    After applying these settings you will be able to see your function names in the [Dynamic Code] module.