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.

Question Issue with Memory profiler snapshot generated - not able to view in editor.

Discussion in 'Editor & General Support' started by UnityTest12345098, Jun 11, 2021.

  1. UnityTest12345098

    UnityTest12345098

    Joined:
    Dec 19, 2016
    Posts:
    8
    Hi,
    I generated a memory profiler snapshot using API
    Code (CSharp):
    1. UnityEngine.Profiling.Memory.Experimental.MemoryProfiler.TakeSnapshot(snapshotPath, onSnapshotReceived);
    ran above script from a build debug menu in android - Snapshot is generated but when I tried importing it to same unity profiler from which local build was generated unity says:

    "Profiler data stream has invalid signature. Was this Profiler data captured in a newer Unity version?"

    Version of unity used is 2019.4.21f1

    Please help . is this a known issue or any work around for the same?
     
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    1,904
    Hi there,

    Memory snapshots (.snap) can't be opened by the Profiler Window (that only loads .raw and .data general profiling data files), only with the Memory Profiler Package, which you'd need to add to your project first.