如何计算wpf控件的总渲染时间? [英] How to calculate the total rendering time of a wpf control?

查看:31
本文介绍了如何计算wpf控件的总渲染时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何分析器或工具可用于计算特定控件的渲染时间".

Is there any profiler or tools available to calculate the "Rendering Time" of a particular control.

渲染时间 - 控件将视觉效果完全渲染到屏幕上所花费的时间.

Rendering Time - Time taken by the control to completely render visually on to the screen.

推荐答案

我不知道有什么工具,但如果它只是一个控件,你可以创建一个子类,覆盖 Render 方法并使用 StopWatch 来查找一些时间...

I don't know of any tools, but if its just a single control you could create a sub class, override the Render methods and use a StopWatch to find some timings...

这篇关于如何计算wpf控件的总渲染时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆