# GrainProfilerOptions Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.grainprofileroptions/)

## DeactivationTime {#deactivationtime-bfd21251}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.grainprofileroptions/properties/deactivationtime-bfd21251/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Dashboard/Orleans.Dashboard/GrainProfilerOptions.cs)

```csharp
public TimeSpan DeactivationTime
```

Gets or sets the duration of inactivity (no dashboard queries) after which profiling is automatically disabled. This setting only applies when [GrainProfilerOptions](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.grainprofileroptions/) is `false`. After this period without queries, profiling stops to reduce overhead until the next dashboard query. Default is 1 minute.

## TraceAlways {#tracealways-bad3c922}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.grainprofileroptions/properties/tracealways-bad3c922/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Dashboard/Orleans.Dashboard/GrainProfilerOptions.cs)

```csharp
public bool TraceAlways
```

Gets or sets a value indicating whether tracing should always be enabled, regardless of dashboard activity. When set to `true`, profiling data is continuously collected even when the dashboard is not being queried. When set to `false` (default), profiling is automatically disabled after [GrainProfilerOptions](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.grainprofileroptions/) of inactivity. Default is `false`.
