# ServerLifecycleManager

Artifact: [androidx.benchmark:benchmark-traceprocessor](https://developer.android.com/jetpack/androidx/releases/benchmark) [View Source](https://cs.android.com/search?q=file:androidx/benchmark/traceprocessor/ServerLifecycleManager.kt+class:androidx.benchmark.traceprocessor.ServerLifecycleManager) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.4.0)

*** ** * ** ***

Android/JVM
- android

  ```
  @ExperimentalTraceProcessorApi
  interface ServerLifecycleManager
  ```

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/benchmark/traceprocessor/ServerLifecycleManager#start()()` Called to Start an instance of Trace Processor | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/benchmark/traceprocessor/ServerLifecycleManager#stop()()` Called to stop the running instance of Trace Processor. | android |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/benchmark/traceprocessor/ServerLifecycleManager#timeoutMessage()()` Called to construct a more detailed failure message when `https://developer.android.com/reference/kotlin/androidx/benchmark/traceprocessor/TraceProcessor` cannot be connected to. | android |

## Public functions

### start

android Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.4.0)

```
fun start(): Int
```

Called to Start an instance of Trace Processor

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the port to use to communicate to Trace Processor |

### stop

android Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.4.0)

```
fun stop(): Unit
```

Called to stop the running instance of Trace Processor.

### timeoutMessage

android Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.4.0)

```
open fun timeoutMessage(): String
```

Called to construct a more detailed failure message when `https://developer.android.com/reference/kotlin/androidx/benchmark/traceprocessor/TraceProcessor` cannot be connected to.