pub fn from_files<P1, P2, W>(
    opt: Options,
    file_before: P1,
    file_after: P2,
    writer: W,
) -> io::Result<()>
where
    P1: AsRef<Path>,
    P2: AsRef<Path>,
    W: Write,
{
    let file1 = File::open(file_before)?;
    let reader1 = io::BufReader::with_capacity(READER_CAPACITY, file1);
    let file2 = File::open(file_after)?;
    let reader2 = io::BufReader::with_capacity(READER_CAPACITY, file2);
    from_readers(opt, reader1, reader2, writer)
}
/// Produce an output that can be used to generate a differential flame graph from
/// a before and an after profile.
///
/// See [`from_readers`] for the input and output formats.
Produce an output that can be used to generate a differential flame graph from
a before and an after profile.

See [`from_readers`] for the input and output formats.
Produce an output that can be used to generate a differential flame graph from a before and an after profile . See [ ` from_readers ` ] for the input and output formats .
pub fn from_files<P1, P2, W>(
    opt: Options,
    file_before: P1,
    file_after: P2,
    writer: W,
) -> io::Result<()>
where
    P1: AsRef<Path>,
    P2: AsRef<Path>,
    W: Write,
{
    let file1 = File::open(file_before)?;
    let reader1 = io::BufReader::with_capacity(READER_CAPACITY, file1);
    let file2 = File::open(file_after)?;
    let reader2 = io::BufReader::with_capacity(READER_CAPACITY, file2);
    from_readers(opt, reader1, reader2, writer)
}
pub fn from_files < P1 , P2 , W > ( opt : Options , file_before : P1 , file_after : P2 , writer : W , ) -> io :: Result < ( ) > where P1 : AsRef < Path > , P2 : AsRef < Path > , W : Write , { let file1 = File :: open ( file_before ) ? ; let reader1 = io :: BufReader :: with_capacity ( READER_CAPACITY , file1 ) ; let file2 = File :: open ( file_after ) ? ; let reader2 = io :: BufReader :: with_capacity ( READER_CAPACITY , file2 ) ; from_readers ( opt , reader1 , reader2 , writer ) }
Produce an output that can be used to generate a differential flame graph from
a before and an after profile.
Produce an output that can be used to generate a differential flame graph from a before and an after profile .
opt
Options
file_before
P1
file_after
P2
writer
W
opt
Options
file_before
P1
file_after
P2
writer
W