Function rftrace_frontend::dump_full_uftrace
source · pub fn dump_full_uftrace(
events: &mut Events,
out_dir: &str,
binary_name: &str
) -> Result<()>
Expand description
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 byinit()
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.