要查看页面耗时,EFCore的性能.

Install-Package MiniProfiler.AspNetCore.Mvc 

编辑Startup.cs

public void ConfigureServices(IServiceCollection services)
{
//EFCore性能监控
services.AddMiniProfiler().AddEntityFramework();
...
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IMemoryCache cache)
{ app.UseMiniProfiler(); // The call to app.UseMiniProfiler must come before the call to app.UseMvc
app.UseMvc(routes =>
{
// ...
});
}

  

编辑 _ViewImports.cshtml:

@using StackExchange.Profiling
@addTagHelper *, MiniProfiler.AspNetCore.Mvc

Add MiniProfiler to your master layout (Shared/_Layout.cshtml by default):

<mini-profiler />

最新文章

  1. http协议
  2. WinForm------GridControl合并单元格
  3. PL/SQL异常处理
  4. UI入门指引
  5. WPF [调用线程无法访问此对象,因为另一个线程拥有该对象。] 解决方案以及如何实现字体颜色的渐变
  6. Conntect Bluetooth devices in iOS.
  7. CORDIC原理与FPGA实现(2)
  8. 交叉编译php5,、nginx、squid方法
  9. swift语言实战晋级-第9章 游戏实战-跑酷熊猫-9-10 移除平台与视差滚动
  10. task-clph
  11. 转载crontab例行工作调度
  12. Tomcat源码学习记录--web服务器初步认识
  13. Collection子接口(List/Set/Queue/SortedSet)
  14. 安装windows7和ubuntu双系统后引导项设置
  15. 5)Javascript设计模式:extends模式
  16. flask_restful 学习笔记
  17. Android + Eclipse + PhoneGap 环境配置
  18. power designer 连接mysql提示“connection test failed”
  19. Centos7中文乱码问题的解决
  20. Python学生信息管理系统的开发

热门文章

  1. fat32转ntfs命令
  2. 2019.04.12 Head First
  3. centos7.5图形界面与命令行界面转换
  4. python操作excel的读、计算、写----xlrd、copy
  5. WAR包方式安装Jenkins
  6. 使用fastdfs搭建文件服务器
  7. python fabric的用法
  8. JVM探秘5---JVM监控命令大全
  9. (Review cs231n) BN and Activation Function
  10. Python数据分析Pandas库数据结构(一)