Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIIRC the gmon.out file is usually written from a function registered with libc using at_exit() - so you probably need to call exit() somewhere in order to get those functions called (assuming that uCOSII will do it).
Alternatively you may be able to directkly call the 'dump all the tables' command. Another possiblity is to request gcc add calls to profiling functions on every function entry/exit - and write your own stubs.