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

Question Automatically save profiling data on a WebGL Development-build (to filesystem)

Discussion in 'WebGL' started by Gluttonium, Dec 14, 2021.

  1. Gluttonium

    Gluttonium

    Joined:
    Aug 19, 2021
    Posts:
    29
    Hey there,
    The issue is that I want to automate profiling and saving profiling data of my WebGL project during the 'Build & Run' of a Developmentbuild. However, to my knowledge, in this way the script does not have direct access to the local file system, as the content is run in a browser. If enabled and saved through script, it will end up in the IndexedDB. I don't have the knowledge to automatically extract and save this data from the IndexedDB to my filesystem.

    If the profiling has to be done manualy it will be an enormous time-sink. Is there a workaround to automatically save profiling data from a WebGL development-build to your filesystem? Any help would be appreciated.
     
    Last edited: Jan 6, 2022
  2. Gluttonium

    Gluttonium

    Joined:
    Aug 19, 2021
    Posts:
    29
    In its current state, I wonder what the actual use is of saving profile-data of a WebGL build through scripts. It ends up in IndexedDB which I personally don't see the benefit of. What is the usecase for this?