# PerformanceRecorder.startParallel(Object object)
Starts to record asynchronous actions, only valid in [Performance Analysis Mode](https://open.feishu.cn/document/uYjL24iN/uEzMzUjLxMzM14SMzMTN/gadget-debugging/performance-analysis).
## Support

App capability | Android | iOS | PC | Preview effect
---|---|---|---|---
Gadget | V6.1.0+ | V6.1.0+ | V6.1.0+ | /
Web app | **✕** | **✕** | **✕** | /

## Input
This parameter is an object and has the following attributes:
| Name | Data type | Required | Default value | Description |
| -- | -- | -- | -- | -- |
| name | string | Yes |  | Name of the asynchronous action |
| type | string | Yes |  | Type of the asynchronous action |
| extra | Object | No |  | Additional information about the asynchronous action, which is a key-value object as `{ a: 1, b: 2, c: 3 }`. |

## Output
| Name | Data type | Description |
| -- | -- | -- |
| recordID | number | ID for marking the start of the record. The ID is passed to [PerformanceRecorder.endParallel()](https://open.feishu.cn/document/uYjL24iN/uAjMuAjMuAjM/performance/PerformanceRecorder/endparallel) to complete recording asynchronous actions.<br>In [Performance Analysis Mode](https://open.feishu.cn/document/uYjL24iN/uEzMzUjLxMzM14SMzMTN/gadget-debugging/performance-analysis), the return value is greater than or equal to 1; otherwise, the value -1 is returned. |
## Sample code
Only valid in [Performance Analysis Mode](https://open.feishu.cn/document/uYjL24iN/uEzMzUjLxMzM14SMzMTN/gadget-debugging/performance-analysis)
```javascript
const p = tt.getPerformanceRecorder && tt.getPerformanceRecorder();
// Starts to record asynchronous actions that can be parallel to other asynchronous logic. The term parallel indicates that actions can be in parallel.
const parallelID = p && p.startParallel({
  name: 'myIntervalSetData',
  type: 'efgh',
  extra: {
    d: 4,
    e: 5,
    f: 6
  }
})
this.setData({
  list: new Array(40).fill(0).map((item) => {
    return {
      a: randomString(2),
      b: randomString(18),
      c: randomString(40),
      d: randomString(30)
    }
  })
}, () => {
  // Completes recording asynchronous actions.
  p && p.endParallel(parallelID)
});
```
