# DefaultCacheMonitor.TrackMemoryAllocated(int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.defaultcachemonitor/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.defaultcachemonitor/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/Monitors/DefaultCacheMonitor.cs#L116)

```csharp
public void TrackMemoryAllocated(int memoryInByte)
```

Called when new memory is allocated by the cache.

### Parameters

- `memoryInByte` (`int`): The memory in bytes.
