profiling

Getting reliable performance measurements for short bits of code

非 Y 不嫁゛ 提交于 2020-01-03 04:53:07
问题 I'm trying to profile a few set of functions which implement different versions of the same algorithm in different ways. I've increased the number of times each function is run so that the total time spent in a single function is roughly 1 minute (to reveal performance differences). Now, running several times the test produces baffling results. There is a huge variability (+- 50 %) between several executions of the same function, and determining which function is the fastest (which is the

how to profile(timing) in powershell

本秂侑毒 提交于 2020-01-02 13:27:51
问题 My powershell script runs slowly, is there any way to profile the powershell script? 回答1: You can do random-pausing in the Powershell debugger. Get the script running, and while it's running, type Ctrl-C. It will halt and then you can display the stack. That will tell you where it is, what it's doing, and why. Do this several times, not just once. Suppose it is taking twice as long as it could. That means each time you interrupt it the probability you will catch it doing the slow thing is 50%

Can't get golang pprof working

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 07:40:34
问题 I have tried to profile some golang applications but I couldn't have that working, I have followed these two tutorials: http://blog.golang.org/profiling-go-programs http://saml.rilspace.org/profiling-and-creating-call-graphs-for-go-programs-with-go-tool-pprof Both says that after adding some code lines to the application, you have to execute your app, I did that and I receiveed the following message in the screen: 2015/06/16 12:04:00 profile: cpu profiling enabled, /var/folders/kg

Can VisualVM monitoring apps running on JRE

不打扰是莪最后的温柔 提交于 2020-01-02 07:15:23
问题 as the headline mentioned: is it possible to connect VisualVM to an remote application running on JRE instead of JDK ? And yes, the VisualVM itself runs on JDK ! Kind regards Dominik 回答1: VisualVM connects to a running Java Virtual Machine (JVM). And this JVM is contained both in the JDK and the JRE. In fact, the JDK is a JRE with additional tools and items to allow creating Java programs. If you only want to run them, you only need a JDK. So yes, you can connect to a JRE-only install. 来源:

WPF Memory leak with derived TextBoxes

早过忘川 提交于 2020-01-02 05:32:11
问题 In one of the apps of mine I have a performance problem I can’t resolve: The app is built with input controls derived from the TextBox -class, having their own ControlTemplate in Themes\Generic.xaml . My problem is, that these controls will not be released after they are no more used. If I look at them with SciTech MemoryProfiler, I see that they are hold by an instance of System.Windows.Documents.TextEditor and the TextEditor -instance is hold through the finalizer queue. Memory profiler

Profiling for java in eclipse juno

北城余情 提交于 2020-01-02 04:47:46
问题 I have to optimize performance of a team project (in eclipse Juno). To identify the bottle neck (timing) i'm searching for a tool or plugin. There seems to be a good platform TPTP, but this is not supported anymore in Eclipse Juno. JVM is a good start but seems not sufficient for a deeper analysis. Did you have some good pratices for an integrated Plugin in Eclipse Juno? If not maybe some standalone tool is succiecent as well. 回答1: There are several big solution in Java profiler world:

Average execution time

不问归期 提交于 2020-01-02 04:42:08
问题 is there any nice GNU way how to measure average (worst case, best case) execution time of some command line program? I have image filter, unspecified amount of pictures, filtering them using for-loop in bash. So far I am using time , but I can't find a way how to get some statistics. 回答1: There's an interesting Perl program called dumbbench that's essentially a wrapper around the time command. It runs your program a number of times, throws away outliers, then calculates some statistics. The

SQL Server Profiling how should I go about it?

空扰寡人 提交于 2020-01-02 04:08:11
问题 So I have used SQL Profiler before and I know how I can view what my LINQ queries are doing behind the scenes. Now, we are in the process of identifying queries that may take more time and need to be optimized or have some indexing. So, now when I view my LINQ queries in the profiler running it side by side there is lot of other data and queries that I dont care. Is there anyway the profiler or some other tools could sort the queries in the order of the largest time....so that I will work on

Why is vector faster than map in one test, but not the other?

荒凉一梦 提交于 2020-01-02 02:20:28
问题 I've always been told vectors are fast, and in my years of programming experience, I've never seen anything to contract that. I decided to (prematurely optimize and) write a associative class that was a thin wrapper around a sequential container (namely ::std::vector and provided the same interface as ::std::map . Most of the code was really easy, and I got it working with little difficulty. However, in my tests of various sized POD types (4 to 64 bytes), and std::strings , with counts

How does a profiler sample a running programe?

别等时光非礼了梦想. 提交于 2020-01-01 18:52:10
问题 I only have some rough idea about this, so I would like to have some more practicle ideas. Ideas for Linux, Unix, and Windows are all welcome. The rough Idea in my head is: The profiler setup some type of timer and a timer interrupt handler in the target process. When its handler takes control, it reads and saves the value of the instruction pointer register. When the sampling is done, it counts the occurences of every IP register value, then we can know the 'top hitters' among all sampled