Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Adding timestamps to Cloud build logs

Discussion in 'Unity Cloud Build' started by tonemcbride, Jul 18, 2019.

  1. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    824
    Hi,

    Recently our iOS builds have been extremely slow compared to local builds - they're taking around 10 hours. The logs look fine but I can't tell where it's spending most of it's time so was wondering if the build logs could have timestamps on each line so I can see what's going on? The checkout time is pretty minimal so I'd like to track down what's happening.

    Thanks!
     
    henriqueranj likes this.
  2. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    127
    Yeah we've been planning to add timestamps to the logs for a while but it's a lot trickier than you'd think especially since logs on a decent size project can be so large that they're hard to store in memory. You can probably find some useful timing data in the Build Steps view (still in beta and the UI is a bit confusing but it should give you what you need). You can find Build Steps by going to your build logs and then clicking on the Build Steps tab.
     
  3. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    824
    Thanks @victorw , part of my problem was that the asset cache had been disabled for some reason so enabling that has helped the build times a lot. It seems like most of the time was spent in shader compilation but luckily that is cached on subsequent builds.
     
    victorw likes this.