private void writeImpl(String type, long frameId, CachedValueProfiler.EventPlace place, int t_num, long t1, long t2, long t3) {
      try {
        myWriter.beginObject();
        myWriter.name(_TYPE).value(type);
        myWriter.name(_FRAME_ID).value(frameId);
        if (Strings.areSameInstance(type, _FRAME_ENTER)) {
          myWriter.name(_FRAME_PID).value(t2); // t2 holds parent id
        }
        if (place != null) {
          StackTraceElement frame = place.getStackFrame();
          myWriter.name(_PLACE).value(frame == null ? null : placeToString(frame));
        }
        if (t_num > 0) myWriter.name(_T1).value(t1);
        if (t_num > 1) myWriter.name(_T2).value(t2);
        if (t_num > 2) myWriter.name(_T3).value(t3);
        myWriter.endObject();
      }
      catch (IOException e) {
        ExceptionUtil.rethrow(e);
      }
    }
private void writeImpl(String type, long frameId, CachedValueProfiler.EventPlace place, int t_num, long t1, long t2, long t3)