- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我们一直在使用 MiniProfiler 作为分析我们的 ASP.NET MVC 5 应用程序性能的简单方法。它在开发中运行良好,但一旦我们将应用程序放到网络场上,我们很快意识到我们需要使用不同/共享的存储介质。
我们通过放置
迁移到 SqlServerStorageMiniProfiler.Settings.Storage = new SqlServerStorage(System.Configuration.ConfigurationManager.ConnectionStrings["SqlDb"].ConnectionString)
进入 MvcApplication.Application_Start
(Global.asax)
我们使用 StackExchange.Profiling.Storage.SqlServerStorage.TableCreationScript
中的脚本创建了 MiniProfiler 表。
自从使用 SqlServerStorage 后,我们发现 MiniProfiler UI 不再正常运行;我们得到以下信息:
如您所见,名称列是空的。有人知道我是否需要配置其他东西吗?
最佳答案
这在 MiniProfiler v4 中已修复(目前处于 alpha 阶段)。不幸的是,v3 没有在 SQL Server 中存储 Name
字段。这是listed as a breaking change in the upgrade notes因为它需要 a schema addition .我无法在 v3 中进行此更改,因为这是一个重大更改。
期待 MiniProfiler v4 在接下来的几周内退出 alpha,因为我们在生产中对其进行大量测试,并推进到 beta 和发布。
关于c# - MiniProfiler 结果 UI 显示空名称,因为使用了 SqlServerStorage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42421303/
我们以两种方式使用迷你分析器: 在带有弹出窗口的开发人员机器上 在我们的暂存/生产环境中,SqlServerStorage 存储到 MS SQL 几周后,我们发现写入分析数据库需要很长时间(几秒钟),
我已经配置了 MiniProfiler使用 SqlServerStorage。 MiniProfiler 是否有一种内置的方式来查看这些保存的分析 session ,就像您在生成它们时查看它们的方式一
我们一直在使用 MiniProfiler 作为分析我们的 ASP.NET MVC 5 应用程序性能的简单方法。它在开发中运行良好,但一旦我们将应用程序放到网络场上,我们很快意识到我们需要使用不同/共享
单击个人资料的共享链接时,出现以下异常。我使用的是 NuGet 的最新版本 2.0.1。 异常(exception): System.NullReferenceException: Object re
我是一名优秀的程序员,十分优秀!