From 1df69573841db1fa30ed721b4ca0310034cbc773 Mon Sep 17 00:00:00 2001 From: Dave Marples Date: Wed, 11 Dec 2024 07:51:04 +0000 Subject: [PATCH] Add diagnostics about size of target elf --- Src/orbtop.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Src/orbtop.c b/Src/orbtop.c index 9502065..0be99d7 100644 --- a/Src/orbtop.c +++ b/Src/orbtop.c @@ -1283,6 +1283,12 @@ int main( int argc, char *argv[] ) genericsReport( V_WARN, "Loaded %s" EOL, options.elffile ); + if ( _r.s ) + { + genericsReport( V_INFO, "Files: %d" EOL "Functions: %d" EOL "Source: %d" EOL, _r.s->fileCount, _r.s->functionCount, _r.s->sourceCount ); + } + + /* Reset the handlers before we start */ ITMDecoderInit( &_r.i, options.forceITMSync ); OFLOWInit( &_r.c ); @@ -1407,6 +1413,11 @@ int main( int argc, char *argv[] ) } genericsReport( V_WARN, "Loaded %s" EOL, options.elffile ); + + if ( _r.s ) + { + genericsReport( V_INFO, "Files: %d" EOL "Functions: %d" EOL "Source: %d" EOL, _r.s->fileCount, _r.s->functionCount, _r.s->sourceCount ); + } }