[][src]Function rftrace_frontend::dump_full_uftrace

pub fn dump_full_uftrace(
    events: &mut Events,
    out_dir: &str,
    binary_name: &str,
    linux: bool
) -> Result<()>

Dumps the traces with some faked metadata into the given folder. Uses the same format as uftrace, which should be used to parse them.

Will NOT generate symbols! You can generate them with nm -n $BINARY > binary_name.sym

Arguments

  • events - Events buffer to write, returned by init()
  • out_dir - folder into which the resulting trace is dumped. Has to exist.
  • binary_name - only relevant for this symbol file. Generated metadata instructs uftrace where to look for it.
  • linux - if true, don't fake the memory map, copy it from /proc/self/maps.