Service Name Fastest time Median time Slowest time Access count
------------------------- --------------------------------------------------
GetCustomer 5 ms 8 ms 1001 ms 12345
ListMonkeys 123 ms 200 ms 228 ms 999
I think I know how to use request/response filters, but maybe there is an existing one Mechanism to do this?
Then you should enable MiniProfiler’s persistent storage, but the namespace/attribute in the embedded version of ServiceStack It may be slightly different from this example.
Finally, I will take a look at the MVC mini profiler dashboard drop in at Github. If you are not using ASP.net MVC, at least PerformanceController.cs can give you a good understanding How to build your SQL call. Disclaimer: The controller is using some statistical functions, which only exist in Oracle, Microsoft SQL and PostgreSQL (as far as I know), so if you are using MySQL, you may need to apply Write some logic code on the terminal.
I want to collect the performance indicators of each ServiceStack service, and write services that report these indicators. Specifically, I eventually want to present something like Report here:
Service Name Fastest time Median time Slowest time Access count
-------------- -------------------------------------------------- -----------
GetCustomer 5 ms 8 ms 1001 ms 12345
ListMonkeys 123 ms 200 ms 228 ms 999
I think I know how to use the request/ Response filters, but maybe there is an existing mechanism to do this?
I will try to view ServiceStacks embedded mini-profiler and change the analysis conditions (in global.asax begin_request) to always run, or run to randomly select all 10% or 15% of the request.
Then, you should enable MiniProfiler’s persistent storage, but the namespace/attributes in the embedded version of ServiceStack may be slightly different from this example.
Finally, I will take a look at the MVC mini profiler dashboard drop in at Github. If you are not using ASP.net MVC, at least PerformanceController.cs can give you a good understanding of how to structure your SQL calls. Disclaimer: Controller Some statistical functions are being used, which only exist in Oracle, Microsoft SQL and PostgreSQL (as far as I know), so if you are using MySQL, you may need to write some logic code on the application side.
< /p>