Add improved FormatBytesCount to print large sizes in more detailed way
Instead of printing `2 GB` output `2.43 GB` to be more explicit. Deprecate version with `int` in favor of a single `ulong`.
This commit is contained in:
@@ -52,7 +52,7 @@ namespace FlaxEditor.Windows.Profiler
|
||||
AnchorPreset = AnchorPresets.HorizontalStretchTop,
|
||||
Offsets = Margin.Zero,
|
||||
Height = SingleChart.DefaultHeight,
|
||||
FormatSample = v => Utilities.Utils.FormatBytesCount((int)v),
|
||||
FormatSample = v => Utilities.Utils.FormatBytesCount((ulong)v),
|
||||
Parent = mainPanel,
|
||||
};
|
||||
_memoryUsageChart.SelectedSampleChanged += OnSelectedSampleChanged;
|
||||
|
||||
Reference in New Issue
Block a user