def parse_line(line):
    """ Parse a queue trace line into a dict
    """
    line = line.split()
    result = {}
    if len(line) < 12:
        return result
    result["event"] = line[0]
    result["time"] = float(line[1])
    result["from"] = int(line[2])
    result["to"] = int(line[3])
    result["type"] = line[4]
    result["size"] = int(line[5])
    result["flags"] = line[6]
    result["fid"] = int(line[7])
    result["src"] = line[8]
    result["dst"] = line[9]
    result["seqnum"] = int(line[10])
    result["pktid"] = int(line[11])
    return result