缓慢的应用程序如何分析问题的位置或如何优化它? [英] Slow application how to analyse where is the problem or how to optimize it?

查看:70
本文介绍了缓慢的应用程序如何分析问题的位置或如何优化它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个解密加密视频文件然后在播放器中运行的应用程序...



解密和获取媒体播放器的URL工作分开在主要过程中工作的线程和媒体控件...



i尝试在许多系统中运行此应用程序(其他时候开发它)非常慢。似乎线程无效但工作正常。当我点击解密按钮时,它会调用一个开始解密的线程。但是当我点击向媒体播放器提供网址的按钮时,它会停留大约5-10分钟,具体取决于文件大小和系统配置,然后开始播放。甚至在转发或制作视频时,它都需要20-30秒才能运行。



而在开发它的PC中它可以正常工作并进行调整。什么都没有卡住...



我尝试在具有相同配置(硬件和软件)的其他系统上运行它但它显示相同的行为...



任何人都猜到有什么问题...... ???



也请建议我使用一些工具我可以测试性能,知道哪个过程变慢,以及由哪个原因。


你的帮助将不胜感激



问候

Hitesh Rohilla

I have created an application to decrypt an encrypted video file and then run it in player...

both decryption and getting URL to media player work in separate thread and media controls working in main process...

i have try running this application in many System (other then in which it is developed) its very slow. it seems like threading is not working but its working fine. when i click on decryption button it calls a thread which start decryption in it. but when i click on the button which provide url to media player it stuck for about 5-10 minutes depending on file size and system configuration and then start playing. not even this on forwarding or making video back it takes 20-30 seconds and then run.

while in a PC in which it is developed it works fine and tuned. nothing stuck...

I try to run it on other system with same configuration (hardware as well as software) but it shows same behavior...

anybody have any guess what's wrong is there...???

also please suggest me some tool using which i can test performance and know which process making it slow and from which reason.

your help will be appreciated

Regards
Hitesh Rohilla

推荐答案

Visual Studio Premium和Ultimate版本在Analyze菜单下进行了性能分析。 />


http://msdn.microsoft.com/ en-us / library / ms182372.aspx [ ^ ]



如果您没有这些版本,您可以下载ANTS Performance P rofiler作为RedGate的VS插件。



http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/ [ ^ ]



但是如果你喜欢它,我建议买它,因为它是一个很好的工具。
Visual studio Premium and Ultimate editions have performance profiling under the "Analyze" menu.

http://msdn.microsoft.com/en-us/library/ms182372.aspx[^]

If you don't have these editions as a one off you can download ANTS Performance Profiler as a VS plug in from RedGate.

http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/[^]

But if you like it, I'd recommend buying it as it's an excellent tool.


这篇关于缓慢的应用程序如何分析问题的位置或如何优化它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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