[][src]Function nom_tracable::histogram

pub fn histogram()

Show histogram of parser call count.

The statistics information to generate histogram is reset at each parser call. Therefore histogram should be called before next parser call. The information is thread independent because it is stored at thread local storage.

    let ret = term(LocatedSpan::new_extra("1", TracableInfo::new()));
    histogram(); // Show histogram of "1" parsing

    let ret = term(LocatedSpan::new_extra("11", TracableInfo::new()));
    histogram(); // Show histogram of "11" parsing