A simple but effective mini-profiler for ASP.NET (and Core) websites
C# TypeScript CSS Shell PowerShell Batchfile
Clone or download
rmja and NickCraver Fix NullReferenceException when RemoteIpAddress is null
Which is the case invoking the middleware from integration tests using `Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<T>`. An example is:

```
public class TelemetryFunctionalTests
    {
        public WebApplicationFactory<Program> Factory { get; }

        public TelemetryFunctionalTests(WebApplicationFactory<Program> factory)
        {
Factory = factory;
        }

        [Fact]
        public async Task Get()
        {
var client = Factory.CreateClient();

            var telemetry = await Client.GetAsync("/Telemetry");

            Assert.NotNull(telemetry);
        }
    }
```

This will currently throw a `NullReferenceException`  at https://github.com/MiniProfiler/dotnet/blob/master/src/MiniProfiler.AspNetCore/MiniProfilerOptions.cs#L42
Latest commit 1a89733 Jun 30, 2018

Readme.md

MiniProfiler for .NET (and .NET Core)

Build status

Welcome to MiniProfiler for .NET, ASP.NET, ASP.NET Core, ASP.NET MVC and generally all the combinations of those words. Documentation for MiniProfiler for .NET is in /docs, accessible via GitHub pages at: miniprofiler.com/dotnet. General information for MiniProfiler across platforms can be found at miniprofiler.com.

The current major version of MiniProfiler is v4, which is in alpha pre-release while we test.

Handy Links

Building

To build the MiniProfiler solution in Visual Studio, you'll need:

  • Visual Studio 2017 (or the .NET 2.x SDK)
  • The Web Compiler extension
    • Note: no extension is needed if building via buid.cmd or build.ps1 in the repository root. They pull it in via a package.

Package Status

MyGet Pre-release feed: https://www.myget.org/gallery/miniprofiler

Package NuGet Stable NuGet Pre-release Downloads MyGet
MiniProfiler MiniProfiler MiniProfiler MiniProfiler MiniProfiler MyGet
MiniProfiler.AspNetCore MiniProfiler.AspNetCore MiniProfiler.AspNetCore MiniProfiler.AspNetCore MiniProfiler.AspNetCore MyGet
MiniProfiler.AspNetCore.Mvc MiniProfiler.AspNetCore.Mvc MiniProfiler.AspNetCore.Mvc MiniProfiler.AspNetCore.Mvc MiniProfiler.AspNetCore.Mvc MyGet
MiniProfiler.EF6 MiniProfiler.EF6 MiniProfiler.EF6 MiniProfiler.EF6 MiniProfiler.EF6 MyGet
MiniProfiler.EntityFrameworkCore MiniProfiler.EntityFrameworkCore MiniProfiler.EntityFrameworkCore MiniProfiler.EntityFrameworkCore MiniProfiler.EntityFrameworkCore MyGet
MiniProfiler.Mvc5 MiniProfiler.Mvc5 MiniProfiler.Mvc5 MiniProfiler.Mvc5 MiniProfiler.Mvc5 MyGet
MiniProfiler.Providers.MongoDB MiniProfiler.Providers.MongoDB MiniProfiler.Providers.MongoDB MiniProfiler.Providers.MongoDB MiniProfiler.Providers.MongoDB MyGet
MiniProfiler.Providers.MySql MiniProfiler.Providers.MySql MiniProfiler.Providers.MySql MiniProfiler.Providers.MySql MiniProfiler.Providers.MySql MyGet
MiniProfiler.Providers.Redis MiniProfiler.Providers.Redis MiniProfiler.Providers.Redis MiniProfiler.Providers.Redis MiniProfiler.Providers.Redis MyGet
MiniProfiler.Providers.SqlServer MiniProfiler.Providers.SqlServer MiniProfiler.Providers.SqlServer MiniProfiler.Providers.SqlServer MiniProfiler.Providers.SqlServer MyGet
MiniProfiler.Providers.SqlServerCe MiniProfiler.Providers.SqlServerCe MiniProfiler.Providers.SqlServerCe MiniProfiler.Providers.SqlServerCe MiniProfiler.Providers.SqlServerCe MyGet
MiniProfiler.Shared MiniProfiler.Shared MiniProfiler.Shared MiniProfiler.Shared MiniProfiler.Shared MyGet

License

MiniProfiler is licensed under the MIT license.