Skip to content

Commit

Permalink
RavenDB-23704 - update the debug endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha-kotler committed Feb 26, 2025
1 parent 960af17 commit 3c2a6b0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Raven.Server.ServerWide.Commands;
using Raven.Server.ServerWide.Context;
using Raven.Server.Utils;
using Sparrow;
using Sparrow.Extensions;
using Sparrow.Json;
using Sparrow.Json.Parsing;
Expand Down Expand Up @@ -94,7 +95,9 @@ private static DynamicJsonValue ToJson(LowLevelTransaction lowLevelTransaction)
[nameof(TxInfoResult.IsLazyTransaction)] = lowLevelTransaction.IsLazyTransaction,
[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(),
};
}
}
Expand All @@ -113,6 +116,8 @@ internal class TxInfoResult
public bool IsLazyTransaction;
public long NumberOfModifiedPages;
public bool Committed;
public string TotalAllocatedSize;
public string DecompressedBufferSize;
public string TotalEncryptionBufferSize;
}
}

0 comments on commit 3c2a6b0

Please sign in to comment.