Profiling asp.net core 2 (web api) with angular 5

1.6k Views Asked by At

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

There are 1 best solutions below

1
François Camus On

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/