[PATCH 05/14] abidw: Add better logging when invoked with --noout
Dodji Seketeli
dodji@seketeli.org
Fri Sep 25 21:05:59 GMT 2026
When abidw is invoked with --noout, the time spent in
abigail::corpus::get_types_not_reachable_from_public_interfaces is not
logged. Fixed thus.
* tools/abidw.cc (load_corpus_and_write_abixml): When --noout is
used, log the time spent in the final call to
abigail::corpus::get_types_not_reachable_from_public_interfaces.
Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
---
tools/abidw.cc | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/tools/abidw.cc b/tools/abidw.cc
index d44f1176..fcab5fc5 100644
--- a/tools/abidw.cc
+++ b/tools/abidw.cc
@@ -749,7 +749,25 @@ load_corpus_and_write_abixml(char* argv[],
if (opts.noout)
{
if (corp)
- corp->get_types_not_reachable_from_public_interfaces();
+ {
+ if (opts.do_log)
+ {
+ emit_prefix(argv[0], cerr)
+ << "computing types not reachable from public interfaces ...\n";
+ t.start();
+ }
+
+ corp->get_types_not_reachable_from_public_interfaces();
+
+ if (opts.do_log)
+ {
+ t.stop();
+ emit_prefix(argv[0], cerr)
+ << "computed types not reachable from public interfaces in: "
+ << t
+ << "\n";
+ }
+ }
return 0;
}
--
2.55.0
More information about the Libabigail
mailing list