diff --git a/src/Raven.Server/Documents/Handlers/Debugging/TransactionDebugHandler.cs b/src/Raven.Server/Documents/Handlers/Debugging/TransactionDebugHandler.cs index 60c7f35d3e7c..ff3b1ab0731a 100644 --- a/src/Raven.Server/Documents/Handlers/Debugging/TransactionDebugHandler.cs +++ b/src/Raven.Server/Documents/Handlers/Debugging/TransactionDebugHandler.cs @@ -5,6 +5,7 @@ using Raven.Server.Documents.Handlers.Debugging.Processors; using Raven.Server.Routing; using Raven.Server.Utils; +using Sparrow; using Sparrow.Extensions; using Sparrow.Json; using Sparrow.Json.Parsing; @@ -82,7 +83,9 @@ private static DynamicJsonValue ToJson(LowLevelTransaction lowLevelTransaction) [nameof(TxInfoResult.IsCloned)] = lowLevelTransaction.IsCloned, [nameof(TxInfoResult.NumberOfModifiedPages)] = lowLevelTransaction.NumberOfModifiedPages, [nameof(TxInfoResult.Committed)] = lowLevelTransaction.Committed, - [nameof(TxInfoResult.TotalEncryptionBufferSize)] = lowLevelTransaction.AdditionalMemoryUsageSize.ToString(), + [nameof(TxInfoResult.TotalAllocatedSize)] = new Size(lowLevelTransaction.TotalAllocatedInBytes, SizeUnit.Bytes).ToString(), + [nameof(TxInfoResult.DecompressedBufferSize)] = new Size(lowLevelTransaction.DecompressedBufferBytes, SizeUnit.Bytes).ToString(), + [nameof(TxInfoResult.TotalEncryptionBufferSize)] = lowLevelTransaction.TotalEncryptionBufferInBytes.ToString(), }; } } @@ -100,6 +103,8 @@ internal sealed class TxInfoResult public bool IsCloned; public long NumberOfModifiedPages; public bool Committed; + public string TotalAllocatedSize; + public string DecompressedBufferSize; public string TotalEncryptionBufferSize; } }