riftrace

Crates.ioriftrace
lib.rsriftrace
version0.1.1
sourcesrc
created_at2023-05-29 20:15:29.108706
updated_at2023-05-29 20:41:33.740859
descriptionA library for interacting with Ftrace Linux kernel internal tracer
homepagehttps://github.com/ImanSeyed/riftrace
repositoryhttps://github.com/ImanSeyed/riftrace
max_upload_size
id877301
size13,771
Iman Seyed (ImanSeyed)

documentation

README

Description

This library provides a simple API for reading Ftrace files.

Examples

use riftrace::{self, Tracer, TracingStat};
// Change current tracer from nop to function_graph 
riftrace::set_current_tracer(Tracer::FunctionGraph).unwrap();
// Turn tracing on
riftrace::set_tracing_on(TracingStat::On).unwrap();
// Limit the trace to only "net*"
riftrace::set_ftrace_filter("net*", false).unwrap();
// Print out the output of the trace in a human readable format
println!("{}", riftrace::trace().unwrap());
Commit count: 2

cargo fmt