[EMAIL PROTECTED] (Maik Scholz) writes:
> i need profiling on our embedded system.  For the the mcount
> function is necessary.  Is there a possibility to implement this
> function on the embedded system, with writes all data (stack, pc,
> ...) trought a high speed interface to a desktop. On the pc a
> off-line mcount implementation should create and log all
> information's into the profiling tables. Afterwards a normal gprof
> file should be written.

I suppose you could do this, but remember that you need to record
program counter samples as well and that the overhead of pushing data
out through an i/o channel is likely to be much greater than updating
it in the embedded systems memory.  This may bias the results to such
an extent that makes them useless. 

If you've got enough memory in your target system, I'd collect the data
locally, and then dump it to a desktop after the profile data has been
collected.

        --jtc

-- 
J.T. Conklin
RedBack Networks

Reply via email to