perf(save): encode detached snapshots and expose phase timings
This commit is contained in:
@@ -59,8 +59,21 @@ namespace ShrinkDataSaver
|
||||
}
|
||||
|
||||
|
||||
public sealed class SavePhaseTimings
|
||||
{
|
||||
public double CaptureMilliseconds { get; internal set; }
|
||||
public double EncodeMilliseconds { get; internal set; }
|
||||
public double EncryptMilliseconds { get; internal set; }
|
||||
public double WriteMilliseconds { get; internal set; }
|
||||
public long EncodedBytes { get; internal set; }
|
||||
}
|
||||
|
||||
public class SaveOptions
|
||||
{
|
||||
/// <summary>Only the detached JToken snapshot is encoded off-thread; module capture stays on the caller thread.</summary>
|
||||
public bool EncodeInBackground = false;
|
||||
public bool CollectTimings = false;
|
||||
public SavePhaseTimings LastTimings { get; internal set; }
|
||||
public string SlotName = "New Save";
|
||||
public bool CaptureScreenshot = false;
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
|
||||
Reference in New Issue
Block a user