5

I am looking for Profiling solutions for following environment, could someone suggest please.

  • ASP.NET Core 2 on net471
  • EntityFramework 6.2.0
  • Angular 5.0.0

I looked into MiniProfiler & Glimpse.

  • Glimpse has not been upgraded for Core 2.0 yet.
  • MiniProfiler works with Core 2 but does not work properly for SPA. Someone has tried to extend http of Angular 2 but Angular 5 now uses HttpClient & interceptor I think.
  • Also I could not figure out how to profile DataContext (System.Data.Linq) for SQL profiling using MiniProfile. Docs suggests Connection wrapping approch. This is a separate issue I guess.
SamJackSon
  • 1,071
  • 14
  • 19

1 Answers1

3

If you follow the doc (https://miniprofiler.com/dotnet/AspDotNetCore) you should be good to go for the server side. Even to integrate it with EF.

For the Angular 5 integration, I got inspired by this post to write an http interceptor: https://blog.dangl.me/archive/using-the-stackexchange-miniprofiler-with-an-angular-single-page-application/

  • FYI - you can call `MiniProfiler.Current.RenderIncludes(HttpContext)` to generate the ` – Nicholas Franceschina Nov 27 '19 at 18:02