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. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Question Profiling data is missing a lot of information?!

Discussion in 'Profiler Previews' started by Peter77, Dec 17, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,324
    Using Unity 2021.1.0a9 and Profiler.enableBinaryLog to record profiling data from a Win64 Player seems like only CPU usage is actually saved. You can find such captures in bug-report Case 1300171.

    When I load the recorded profiling data in Unity's Profiler window, most information is not available.

    Is this by design? @MartinTilo

    upload_2020-12-17_18-16-25.png
     
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    1,904
    Starting from 2018.3 you can specify which areas/modules you want to capture profiler data for. This is either informed by which modules are open in the UI or via the Profiler.Get/SetAreaEnabled API. This is on purpose to give you finer control over what profiling overhead you want to incur. I'm not aware of any defaults changing for this in 2021.1 though but maybe a Profiler with only CPU view on connected to he build?
     
    Peter77 likes this.
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,324
    Thank you for the quick reply!

    No editor was connected to the build. I guess the default is CPU only, which is fine to me since I can change it via
    SetAreaEnabled
    as you pointed out. I wasn't aware of this method.
     
    MartinTilo likes this.