diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-07-23 22:36:04 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-07-23 22:36:04 +0300 |
commit | 546e7702caaca48c1d0146f27269a143307409f7 (patch) | |
tree | d480e864c4d80b0c18563acb4e7432e8c0a09c28 /src/XZEncDemo.java | |
parent | daface1a5537e5ac37655ae0be696a13e8121f6c (diff) | |
download | xz-java-546e7702caaca48c1d0146f27269a143307409f7.tar.gz |
Print memory usage info in XZEncDemo.
Diffstat (limited to 'src/XZEncDemo.java')
-rw-r--r-- | src/XZEncDemo.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/XZEncDemo.java b/src/XZEncDemo.java index 221c4d4..afdfbc6 100644 --- a/src/XZEncDemo.java +++ b/src/XZEncDemo.java @@ -17,6 +17,12 @@ import org.tukaani.xz.*; class XZEncDemo { public static void main(String[] args) throws Exception { LZMA2Options options = new LZMA2Options(); + + System.err.println("Encoder memory usage: " + + options.getEncoderMemoryUsage() + " KiB"); + System.err.println("Decoder memory usage: " + + options.getDecoderMemoryUsage() + " KiB"); + XZOutputStream out = new XZOutputStream(System.out, options, XZ.CHECK_CRC64); |