Added an internal timer to the VolumeDecryptor

This commit is contained in:
Carl Johnsen
2025-09-30 13:11:16 +02:00
parent 531471e3b5
commit 90a54a177e
@@ -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);