Hcf MiniProfiler 性能监测组件,基于MiniProfiler实现的性能监测组件
通过nuget引用 Hcf.MiniProfiler 程序集
Install-Package HcfNet.MiniProfiler添加 MiniProfilerPack 组件包
services.AddPack<MiniProfilerPack>();"Hcf":{
"MiniProfiler": {
"Enabled": true
}
}要禁用MiniProfiler,可以设置 Enabled: false
在_ViewImports.cshtml文件中添加
@using StackExchange.Profiling
@addTagHelper *, MiniProfiler.AspNetCore.Mvc在全局母版页中_Layout.cshtml文件中添加标签
<mini-profiler />