_time build cache
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Flax.Build.Graph;
|
using Flax.Build.Graph;
|
||||||
@@ -269,7 +270,10 @@ namespace Flax.Build
|
|||||||
|
|
||||||
using (new ProfileEventScope("LoadIncludesCache"))
|
using (new ProfileEventScope("LoadIncludesCache"))
|
||||||
{
|
{
|
||||||
|
var sw = Stopwatch.StartNew();
|
||||||
IncludesCache.LoadCache();
|
IncludesCache.LoadCache();
|
||||||
|
sw.Stop();
|
||||||
|
Log.Info($"LoadIncludesCache: {sw.Elapsed.TotalMilliseconds}ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create task graph for building all targets
|
// Create task graph for building all targets
|
||||||
@@ -392,7 +396,12 @@ namespace Flax.Build
|
|||||||
graph.SortTasks();
|
graph.SortTasks();
|
||||||
|
|
||||||
using (new ProfileEventScope("LoadCache"))
|
using (new ProfileEventScope("LoadCache"))
|
||||||
|
{
|
||||||
|
var sw = Stopwatch.StartNew();
|
||||||
graph.LoadCache();
|
graph.LoadCache();
|
||||||
|
sw.Stop();
|
||||||
|
Log.Info($"LoadCache: {sw.Elapsed.TotalMilliseconds}ms");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute tasks
|
// Execute tasks
|
||||||
@@ -407,13 +416,19 @@ namespace Flax.Build
|
|||||||
// Save graph execution result cache
|
// Save graph execution result cache
|
||||||
using (new ProfileEventScope("SaveCache"))
|
using (new ProfileEventScope("SaveCache"))
|
||||||
{
|
{
|
||||||
|
var sw = Stopwatch.StartNew();
|
||||||
graph.SaveCache();
|
graph.SaveCache();
|
||||||
|
sw.Stop();
|
||||||
|
Log.Info($"SaveCache: {sw.Elapsed.TotalMilliseconds}ms");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
using (new ProfileEventScope("SaveIncludesCache"))
|
using (new ProfileEventScope("SaveIncludesCache"))
|
||||||
{
|
{
|
||||||
|
var sw = Stopwatch.StartNew();
|
||||||
IncludesCache.SaveCache();
|
IncludesCache.SaveCache();
|
||||||
|
sw.Stop();
|
||||||
|
Log.Info($"SaveIncludesCache: {sw.Elapsed.TotalMilliseconds}ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var target in targets)
|
foreach (var target in targets)
|
||||||
|
|||||||
Reference in New Issue
Block a user