PerformanceDebugOverlay 1.0.5

There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package PerformanceDebugOverlay --version 1.0.5
                    
NuGet\Install-Package PerformanceDebugOverlay -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PerformanceDebugOverlay" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PerformanceDebugOverlay" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="PerformanceDebugOverlay" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PerformanceDebugOverlay --version 1.0.5
                    
#r "nuget: PerformanceDebugOverlay, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PerformanceDebugOverlay@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PerformanceDebugOverlay&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=PerformanceDebugOverlay&version=1.0.5
                    
Install as a Cake Tool

## PerformanceDebugOverlay (v1.0.5)

A comprehensive performance overlay for .NET MAUI that monitors FPS, CPU, memory, GC, battery, and networking in real time, without requiring major changes to your application code.

![Overlay Screenshot](https://raw.githubusercontent.com/vankraster/MauiPerfDebugOverlay/refs/heads/master/MauiPerfDebugOverlay.SampleApp/overlay/overlay-screenshot-103.png)


## Features

FPS & FrameTime – calculated using EMA (Exponential Moving Average)

CPU usage – per-process CPU utilization

Memory usage – current memory and allocations/sec

GC activity – collections per generation

Battery consumption – approximate consumption in mW (Android only)

Network stats – total requests, bytes sent/received, average request time

Overall score – 0–10 score based on all metrics

Compact / Expanded view – show/hide individual metrics

Live drag & reposition – move the overlay freely at runtime

Plug-and-play integration – works globally without modifying existing HTTP code


## Installation

Add the NuGet package to your project:

dotnet add package PerformanceDebugOverlay --version 1.0.5


## Configuration

in MauiProgram.cs




using MauiPerfDebugOverlay.Extensions;

using MauiPerfDebugOverlay.Models;



public static class MauiProgram

{

&nbsp;   public static MauiApp CreateMauiApp()

&nbsp;   {

&nbsp;       var builder = MauiApp.CreateBuilder();



&nbsp;       builder

&nbsp;           .UseMauiApp<App>()

&nbsp;           .UsePerformanceDebugOverlay(new PerformanceOverlayOptions

&nbsp;           {

&nbsp;               ShowBatteryUsage = true,

&nbsp;               ShowNetworkStats = true,

&nbsp;               ShowAlloc\_GC = true,

&nbsp;               ShowCPU\_Usage = true,

&nbsp;               ShowFrame = true,

&nbsp;               ShowMemory = true

&nbsp;           });



&nbsp;       return builder.Build();

&nbsp;   }

}

Options are optional and can be enabled or disabled individually.

Activation in Your App

In App.xaml.cs:


public App()

{

&nbsp;   InitializeComponent();



&nbsp;   // Enable the PerformanceOverlay globally

&nbsp;   PerformanceOverlayManager.Instance.Enable();



&nbsp;   MainPage = new AppShell();

}

The overlay will appear automatically and is interactive.


## Notes

Battery consumption metrics are only available on Android. Other platforms will display N/A.

Networking metrics automatically monitor all HttpClient and HttpWebRequest requests without modifying existing code.

Overlay is fully configurable and extensible.


## Simple API


PerformanceOverlayManager.Instance.Enable() – show the overlay



PerformanceOverlayManager.Instance.Disable() – hide the overlay

Configuration is done via PerformanceOverlayOptions to customize which metrics are displayed

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst18.0 is compatible.  net8.0-windows10.0.19041 is compatible.  net9.0-android was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-windows was computed.  net10.0-android was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 0 9/8/2025

Added new metrics: Battery consumption (Android only) and Network stats (requests, bytes sent/received, average request time). Improved UI. Existing FPS, FrameTime, CPU, Memory, Threads, GC, Alloc/sec, Hitches, and Overall Score functionality remains.