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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Emscripten trace.h

Discussion in 'WebGL' started by RostislavS, Sep 16, 2015.

  1. RostislavS

    RostislavS

    Joined:
    Jun 17, 2015
    Posts:
    4
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    not at the moment. We would need to implement this feature in native code and build pipeline.

    Are you interested in profiling the Unity Heap ? If so, you can just use the Unity Profiler.
     
  3. RostislavS

    RostislavS

    Joined:
    Jun 17, 2015
    Posts:
    4
    I want to profile HEAP used in my WebGL build(reserved by Javascript code)
    I cant see any information about that heap in Unity Profiler.
     
  4. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
  5. RostislavS

    RostislavS

    Joined:
    Jun 17, 2015
    Posts:
    4
    Thx.
    I really try to use profiler - but on every WebGL project after 3-5 seconds of recording browser hangs out. In unity I get "Sending message header failed" warning.

    I see that you are checking DYNAMICTOP < TOTAL_MEMORY before showing MemotyOut error.
    If I understand you correct I can view emscripten HEAP by doing memory snapshot from Profiler?

    Also Development Build takes to much memory...
     
    Last edited: Sep 18, 2015