Blazor server side measure delays (nuget injection?)

PGT 1 Reputation point
2021-12-20T13:57:38.567+00:00

I was wondering, to measure the delays between client and a server based razor app.
How would one approach this, i think its be nice if our app could take actions (upon delays) , and give insights in how responsive it is.
If our app could inform that a client bandwidth limit is low (then render a lighter version, or inform the remote user).

Currently i have no good idea about frequent used areas, if users click a button /scroll, how much time did it took to render.
I want numbers, not user feelings describing our site as those very between people.

Any ideas maybe there is already such a nuget.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,654 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Zhi Lv - MSFT 32,926 Reputation points Microsoft Vendor
    2021-12-21T02:17:27.47+00:00

    Hi @PGT ,

    To diagnose performance issues in ASP.NET Core, you could try to use the following tools: Visual Studio Diagnostic Tools or Application Insights. More information is available in Performance Diagnostic Tools

    Currently i have no good idea about frequent used areas, if users click a button /scroll, how much time did it took to render.
    I want numbers, not user feelings describing our site as those very between people.

    For the button/scroll event, you could also use F12 developer Network or Performance features to check the page load or click event spend time.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Dillion


  2. Bruce (SqlWork.com) 70,216 Reputation points
    2021-12-21T16:11:15.313+00:00

    you probably want to hookup with the google analytics. web-vitals is a tiny library for this:

    https://www.npmjs.com/package/web-vitals

    you would set up on the page, and use javascript interop to hookup to live client events. if you review the blazor client library, you may be able to wrap its event handling

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.