next up previous contents index
Next: 27.3 API reference Up: 27 Profiling Support: liboskit_gprof.a Previous: 27.1 Introduction

27.2 Caveats

The application to be profiled must be called ``a.out''.

It is expected that the current behavior of generating ASCII output to the console device will be changed in the future. For example, the interface might be modified to allow specification of an oskit_stream object (Section 4) to which the binary ``gmon.out'' data would be written. Typically, this object would refer to a persistent file or a network connection with another machine.

See Section 27.4 for line-by-line instructions on using gprof in the OSKit, including some non-obvious linking magic. You may need to link against additional libraries to use gprof on your kernel; If your kernel does not use a bmod filesystem, you'll need to additionally link against the memfs library.



Utah Flux Research Group