# GrainProfilerOptions.DeactivationTime

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

[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.
