tmf.common: Add a data size and speed formatter
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Fri, 8 Apr 2016 17:55:56 +0000 (13:55 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Mon, 11 Apr 2016 14:25:59 +0000 (10:25 -0400)
commitf937c19c5c6aa1b495725cf8974756117e3a25aa
treebde8bacef96f988ce1f202c661f789293f0fc1c2
parent5c75d7d27ca71c648cc8128f7f0ce0823b6493dc
tmf.common: Add a data size and speed formatter

This allows to format numbers representing sizes and speeds in bytes[/s] to
the closest thousand with 3 decimals. Format also includes the units.

This patch updates the kernel memory usage view to use this formatter.

Change-Id: I637f9e408d75f6a3948169d6fde5e8da596b17ce
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/70287
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
analysis/org.eclipse.tracecompass.analysis.os.linux.ui/src/org/eclipse/tracecompass/internal/analysis/os/linux/ui/views/kernelmemoryusage/KernelMemoryUsageViewer.java
common/org.eclipse.tracecompass.common.core.tests/src/org/eclipse/tracecompass/common/core/tests/format/DataSizeFormatTest.java [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core.tests/src/org/eclipse/tracecompass/common/core/tests/format/DataSpeedFormatTest.java [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/META-INF/MANIFEST.MF
common/org.eclipse.tracecompass.common.core/src/org/eclipse/tracecompass/common/core/format/DataSizeWithUnitFormat.java [new file with mode: 0644]
common/org.eclipse.tracecompass.common.core/src/org/eclipse/tracecompass/common/core/format/DataSpeedWithUnitFormat.java [new file with mode: 0644]
This page took 0.025601 seconds and 5 git commands to generate.