mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Make -vv show also decompressor memory usage.
This commit is contained in:
parent
b4b1cbcb53
commit
2fce9312f3
1 changed files with 7 additions and 0 deletions
|
@ -184,6 +184,13 @@ coder_set_compression_settings(void)
|
||||||
// Print memory usage info before possible dictionary
|
// Print memory usage info before possible dictionary
|
||||||
// size auto-adjusting.
|
// size auto-adjusting.
|
||||||
message_mem_needed(V_DEBUG, memory_usage);
|
message_mem_needed(V_DEBUG, memory_usage);
|
||||||
|
if (opt_mode == MODE_COMPRESS) {
|
||||||
|
const uint64_t decmem = lzma_raw_decoder_memusage(filters);
|
||||||
|
if (decmem != UINT64_MAX)
|
||||||
|
message(V_DEBUG, _("Decompression will need "
|
||||||
|
"%s MiB of memory."), uint64_to_str(
|
||||||
|
round_up_to_mib(decmem), 0));
|
||||||
|
}
|
||||||
|
|
||||||
if (memory_usage > memory_limit) {
|
if (memory_usage > memory_limit) {
|
||||||
// If --no-auto-adjust was used or we didn't find LZMA1 or
|
// If --no-auto-adjust was used or we didn't find LZMA1 or
|
||||||
|
|
Loading…
Reference in a new issue