[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[committed] Mention DIE counting phase with --devel-trace
Hi,
Now that DIE counting is an additional phase, mention it in the trace:
...
$ cp cc1 1; time.sh dwz 1 --devel-trace
Compressing 1
+Counting DIEs
Hit low-mem die-limit
Compressing 1 in low-mem mode
maxmem: 655324
real: 9.81
user: 9.53
system: 0.27
...
Which makes it also clear when we're not using that phase:
...
$ cp cc1 1; time.sh dwz 1 -l11000000 --devel-trace
Compressing 1
maxmem: 1177616
real: 5.89
user: 5.55
system: 0.33
...
Committed to trunk.
Thanks,
- Tom
Mention DIE counting phase with --devel-trace
2019-11-26 Tom de Vries <tdevries@suse.de>
* dwz.c (try_debug_info): Mention DIE counting phase in trace.
---
dwz.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dwz.c b/dwz.c
index fc41b0e..095af49 100644
--- a/dwz.c
+++ b/dwz.c
@@ -4900,6 +4900,9 @@ try_debug_info (DSO *dso)
unsigned ret = 1;
int kind = DEBUG_INFO;
+ if (tracing)
+ fprintf (stderr, "Counting DIEs\n");
+
ndies = 0;
ptr = debug_sections[kind].data;
endsec = ptr + debug_sections[kind].size;