Skip to content

Commit

Permalink
Add diagnostics about size of target elf
Browse files Browse the repository at this point in the history
  • Loading branch information
mubes committed Dec 11, 2024
1 parent 0e34137 commit 1df6957
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Src/orbtop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
}
}


Expand Down

0 comments on commit 1df6957

Please sign in to comment.