Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ To capture transactions and spans customized to your organization's needs, you m

<PlatformContent includePath="performance/add-spans-example" />

## Custom Timestamps
Sometimes you want to measure timings in code that cannot call Native SDK functions directly (like GPU shaders). For these cases, the following explicitly timed functions can be used.
- `sentry_transaction_start_ts`
- `sentry_transaction_finish_ts`
- `sentry_transaction_start_child_ts`
- `sentry_transaction_start_child_ts_n`
- `sentry_span_start_child_ts`
- `sentry_span_start_child_ts_n`
- `sentry_span_finish_ts`

They only differ from their non-timestamped counterparts by taking an additional timestamp parameter, which is the unix epoch offset in microseconds.

When using these functions, you should ensure that the provided timestamps are consistent. It is recommended to use the normal interface with automatic timestamping, and to only use the explicitly timed interface when absolutely necessary.


<PlatformContent includePath="performance/concurrency" />

<PlatformContent includePath="performance/connect-errors-spans" />
Expand Down
Loading