code: public static TraceEvent parse(String data)
     {
        String[] raw = data.split("-");
  
        String header = raw[0];
        String p = raw[1];
        String m = raw[2];
        long tid = Long.parseLong(raw[3]);
        int t = Integer.parseInt(raw[4]);
        long ts = Long.parseLong(raw[5]);
        String c = raw[6];
        String pyl = "";
        String py2 = "";
  
        if (raw.length >= 8)
           pyl = raw[7];
        if (raw.length >= 9)
           py2 = raw[8];
  
        return new TraceEvent(p, m, tid, t, ts, c, pyl, py2);
     }
docs: Parse a trace event
  @param data The data string
  @return The event