def plot_irq()

in perfrunbook/utilities/measure_and_plot_basic_sysstat_stats.py [0:0]


def plot_irq(buf, stat):
    """
    Plot irq per second data from mpstat
    """
    from mpstat_parse import parse_mpstat_json_all_irqs
    import json
    irqs = json.load(buf)

    df = parse_mpstat_json_all_irqs(irqs)

    calc_stats_and_plot(df, stat)