Added an internal timer to the VolumeDecryptor
This commit is contained in:
@@ -60,6 +60,7 @@ namespace Duplicati.Library.Main.Operation.Restore
|
||||
Stopwatch? sw_read = options.InternalProfiling ? new() : null;
|
||||
Stopwatch? sw_write = options.InternalProfiling ? new() : null;
|
||||
Stopwatch? sw_decrypt = options.InternalProfiling ? new() : null;
|
||||
Stopwatch? sw_bvr = options.InternalProfiling ? new() : null;
|
||||
try
|
||||
{
|
||||
while (true)
|
||||
@@ -71,9 +72,12 @@ namespace Duplicati.Library.Main.Operation.Restore
|
||||
|
||||
sw_decrypt?.Start();
|
||||
var tmpfile = backend.DecryptFile(volume, volume_name, options);
|
||||
var bvr = new BlockVolumeReader(options.CompressionModule, tmpfile, options);
|
||||
sw_decrypt?.Stop();
|
||||
|
||||
sw_bvr?.Start();
|
||||
var bvr = new BlockVolumeReader(options.CompressionModule, tmpfile, options);
|
||||
sw_bvr?.Stop();
|
||||
|
||||
sw_write?.Start();
|
||||
// Pass the decrypted volume to the `VolumeDecompressor` process.
|
||||
await self.Output.WriteAsync((volume_id, tmpfile, bvr)).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user