Search Unity

Timestamps with logs

Discussion in 'Unity Game Simulation' started by GallatyDesigns, Sep 14, 2020.

  1. GallatyDesigns

    GallatyDesigns

    Joined:
    Sep 2, 2017
    Posts:
    9
    We're looking at how long it takes to do each of our simulation runs, and it appears that there may be some places in the code where we could skip some steps and speed up the overall time it takes to do one run of the simulation. The problem is that the logs that we get from the simulation server do not have any timestamps, unlike the logs you get from Unity on the desktop. Timestamps would be helpful in determining how much time is being spent in which areas of code.

    Here's a snippet of the log file that is downloaded. Notice that there's no timestamp at the beginning of each line, unlike the normal Unity console.

    DC[V]: Completed upload in 0 seconds.
    DC[V]: SignedURLDataConsumer Removing local file projects/1f9d20cf-f7a6-4293-9c75-0c121981d5e1/run_executions/urn:run_definitions:El6xxwP/others/urn:run_executions:6Nw1wo0/urn:app_params:Oe8plge/instance:17/attempt:1/Chunks/Player_1.Log
    Level 0 started
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Copying NB world varaibles to Core world variables
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    30702: Copying 0 world variables to core
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    /unity_build/ZombieSurvivorsSim10_Data/StreamingAssets/Undefined_LevelFlowData.json loaded
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Loaded flow Undefined contains 4 levels
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    /unity_build/ZombieSurvivorsSim10_Data/StreamingAssets/CureThePlague_LevelFlowData.json loaded
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
     
  2. souranil_sen

    souranil_sen

    Unity Technologies

    Joined:
    Mar 19, 2020
    Posts:
    3
    Hello GallatyDesigns,

    Thank you for the feedback! We are currently looking into this and will get back to you shortly.

    Best,
    Souranil