profiling

.Net Profiling API approaches

I have a feeling I may already know the answer to this question, but I'll ask it anyway. Are there any better ways of using the .Net Profiling API than the COM/Managed C++ route? My reluctance to follow the suggested COM approach is as such: Effort, it's a lot of legwork to get started Don't like the magic involved in hooking up the ...

What is the best way to diagnose and profile MySQL in live production server?

What tools/methods do you recommend to diagnose and profile MySQL in live production server? My goal to test alternative ways of scaling up the system and see their influence on read/write timing, memory, CPU load, disk access etc. and to find bottlenecks. ...

What is profiling?

I am new to this and is trying to learn, What is profiling? What are various free tools for profiling .NET, JEE Can java script be profiled if so by which tool and lastly how do these profilers work? ...

What influences the speed of code?

The way to see how fast your code is going, is performance profiling. There are tools for it and such, but I wonder what the factors are for code speed. For instance, I've been told that image-editting software will use bitwise operations instead of integer variables to calculate their stuff, simply because it's faster. So that must me...

How can I get better profiling?

I need to profile a program to see whether any changes need to be made regarding performance. I suspect there is a need, but measuring first is the way to go. This is not that program, but it illustrates the problem I'm having: #include <stdio.h> int main (int argc, char** argv) { FILE* fp = fopen ("trivial.c", "r"); if (fp) { ...

CPU load from Java

Is there a way to get the current cpu load under Java without using the JNI? ...

Python Profiling in Eclipse

This questions is semi-based of this one here: http://stackoverflow.com/questions/582336/how-can-you-profile-a-python-script I thought that this would be a great idea to run on some of my programs. Although profiling from a batch file as explained in the aforementioned answer is possible, I think it would be even better to have this op...

Profiling C++ multi-threaded applications

Have you used any profiling tool like Intel Vtune analyzer? What are your recommendations for a C++ multi threaded application on Linux and windows? I am primarily interested in cache misses, memory usage, memory leaks and CPU usage. I use valgrind (only on UNIX), but mainly for finding memory errors and leaks. ...

Timer to find elapsed time in a function call in C

I want to calculate time elapsed during a function call in C, to the precision of 1 nanosecond. Is there a timer function available in C to do it? If yes please provide a sample code-snippet. Pseudo code Timer.Start() foo(); Timer.Stop() Display time elapsed in execution of foo() Environment details: - using gcc 3.4 compiler on a...

Measuring execution time and memory used

Most online judges have some sort of system to measure execution time and memory consumption. An example is shown here. How is it done? Is there a simple UNIX utility I can use to run similar tests on my own programs? ...

Reliable CPU profiler for .NET 3.5 under Win64 with command line support?

I am looking for a CPU profiler for .NET supporting heavily threaded apps. (double) quad-core CPUs. sampling profiling. 64 bits OS. command-line API. Currently, I am getting trouble with most .NET profilers, in particular, YourKit does not seem to support command-line. dotTrace 3.1 is crashing with 64 bits OS. I haven't tried In...

Profiling each thread in a multithreaded environment

Is there any way to find out the actual time spent by a thread inside the CPU using MFC/Win32? By actual time, I mean I don't want to count the time the thread spent in states other than "Running". I tried GetThreadTimes() method in Win32 SDK but couldn't get the proper values. I want to do this because I want to check effect of setting ...

How can I profile a multithread program in Python?

I'm developing an inherently multithreaded module in Python, and I'd like to find out where it's spending its time. cProfile only seems to profile the main thread. Is there any way of profiling all threads involved in the calculation? ...

How can I profile a very large Java webapp?

I have a very large Java app. It runs on Tomcat and is your typical Spring/Hibernate webapp. It is also an extremely large Java program. It's easy for me to test the performance of database queries, since I can run those separately, but I have no idea to look for Java bottlenecks on a stack like this. I tried Eclipse's TPTP profiler,...

Do I just completely misunderstand how to use Visual Studio's 2008 profiler?

complaining { I always end up incredibly frustrated when I go to profile my code using Visual Studio 2008's profiler (from the Analyze menu option). It is one of the poorest designed features of VS, in my opinion, and I cringe every time I need use it. } I have a few questions concerning it's use, I'm hoping you guys can give me some ...

Java Profiling: Private Property Getter has Large Base Time

I'm using TPTP to profile some slow running Java code an I came across something interesting. One of my private property getters has a large Base Time value in the Execution Time Analysis results. To be fair, this property is called many many times, but I never would have guessed a property like this would take very long: public class...

How can I count the time it takes a function to complete in Java?

I need to count the time it takes a function to complete in Java. How can I do that? Note: I want to count the time a function takes, not the time the full program takes. ...

What could cause the application as well as the system to slowdown?

I am debugging an application which slows down the system very badly. The application loads a large amount of data (some 1000 files each of half an MB) from the local hard disk.The files are loaded as memory mapped files and are mapped only when needed. This means that at any given point in time the virtual memory usage does not exceed 3...

Memory Allocation Profiling in C++

I am writing an application and am surprised to see its total memory usage is already too high. I want to profile the dynamic memory usage of my application: How many objects of each kind are there in the heap, and which functions created these objects? Also, how much memory is used by each of the object? Is there a simple way to do thi...

HPjmeter-like graphical tool to view -agentlib:hprof profiling output

What tools are available to view the output of the built-in JVM profiler? For example, I'm starting my JVM with: -agentlib:hprof=cpu=times,thread=y,cutoff=0,format=a,file=someFile.hprof.txt This generates output in the hprof ("JAVA PROFILE 1.0.1") format. I have had success in the past using HPjmeter to view these output files in a r...