# CompositionTracer

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/Composer.kt+class:androidx.compose.runtime.CompositionTracer) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.2.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  @InternalComposeTracingApi
  interface CompositionTracer
  ```

*** ** * ** ***

Internal tracing API.

Should be called without thread synchronization with occasional information loss.

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionTracer#isTraceInProgress()()` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionTracer#traceEventEnd()()` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/CompositionTracer#traceEventStart(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dirty1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, dirty2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, info: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` | Cmn |

## Public functions

### isTraceInProgress

Cmn Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.2.0)

```
fun isTraceInProgress(): Boolean
```

### traceEventEnd

Cmn Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.2.0)

```
fun traceEventEnd(): Unit
```

### traceEventStart

Cmn Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.2.0)

```
fun traceEventStart(key: Int, dirty1: Int, dirty2: Int, info: String): Unit
```