# tf.profiler.experimental.ProfilerOptions

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.6.0/tensorflow/python/profiler/profiler_v2.py#L50-L82) |

Options for finer control over the profiler.

    tf.profiler.experimental.ProfilerOptions(
        host_tracer_level=2, python_tracer_level=0, device_tracer_level=1, delay_ms=None
    )

Use [`tf.profiler.experimental.ProfilerOptions`](https://www.tensorflow.org/versions/r2.6/api_docs/python/tf/profiler/experimental/ProfilerOptions) to control [`tf.profiler`](https://www.tensorflow.org/versions/r2.6/api_docs/python/tf/profiler)
behavior.

#### Fields:

- **`host_tracer_level`**: Adjust CPU tracing level. Values are: 1 - critical info only, 2 - info, 3 - verbose. \[default value is 2\]
- **`python_tracer_level`**: Toggle tracing of Python function calls. Values are: 1
- enabled, 0 - disabled \[default value is 0\]
- **`device_tracer_level`**: Adjust device (TPU/GPU) tracing level. Values are: 1 - enabled, 0 - disabled \[default value is 1\]
- **`delay_ms`** : Requests for all hosts to start profiling at a timestamp that is `delay_ms` away from the current time. `delay_ms` is in milliseconds. If zero, each host will start profiling immediately upon receiving the request. Default value is None, allowing the profiler guess the best value.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `host_tracer_level` | <br /> <br /> |
| `python_tracer_level` | <br /> <br /> |
| `device_tracer_level` | <br /> <br /> |
| `delay_ms` | <br /> <br /> |

<br />