难以解决性能问题
我的应用程序中有一个主页,在导航到该页面时存在严重问题。当我添加一个可用于写入跟踪信息的静态类以及调试输出所花费的时间时,我终于缩小了问题范围。我发现,当导航到应用程序的此主页时(始终通过硬件返回或 nav.goback()),OnNavieratedTo 和 Loaded 事件之间的延迟超过 4.5 秒。此时,我在托管代码中看不到可以添加跟踪语句以进一步深入的任何其他位置。
关于故障排除有什么建议吗?
I have a main page in an app that has significant issues when the page is navigated to. I finally narrowed the issue when I added a static class that can be used to write trace information, and time elapsed to the debug out put. I have discovered that when this main page of the app is navigated to (always via hardware back, or nav.goback()) has a greater than 4.5 second delay between the OnNavigatedTo and the Loaded event. At that point, I cannot see any other places in managed code where I can add trace statements to drill down further.
Any suggestions on troubleshooting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会尝试从 XAML 中消除(注释掉)各种项目,直到问题大大减少或消除。可能的候选者是数据绑定字段、列表框、包含太多项目的枢轴控件、全景图中的枢轴、转换器等。
一旦找到速度缓慢的根源,您就可以开始解决原因。
I would try eliminating (commenting out) various items from your XAML until the problem is greatly reduced or eliminated. Likely candidates are databound fields, listboxes, pivot controls with too many items, pivots within panoramas, Converters, etc.
Once you find the source of the slowdown you can begin to work on the cause.