profiling

linux dot utility (with xhprof)

i installed the xhprof profiling extension for php Everything is fine except for the callgraph.php file, it returns: failed to shell execute cmd=" dot -Tpng" so i checked and the dot utility wasn't installed, so i installed it. it appears to be running fine from the command line so i ran the scritp again, same error: failed to shell e...

How do I get callgrind to dump source line information?

I'm trying to profile a shared library on GNU/Linux which does real-time audio processing, so performance is important. I run another program which hooks it up to the audio input and output of my system, and profile that with callgrind. Looking at the results in KCacheGrind, I get great information about what functions are taking up mo...

Using WPFPerf to profile a WPF 4.0 application doesn't show me any information

I am trying to use WPFPerf to profile a WPF 4.0 application (I have the latest WPFPerf that should work on WPF 4.0 aps). I start the tool Visual Profiler from WPFPerf, I start my aplication, but after that nothing happens and the element tree from the Visual Profiler is empty. No other error message is shown. Can anyone tell me what am I...

How to find native memory leak in .net application?

Hi all! I have application written in C#. Memory usage shows that there is a memory leak. However, dotTrace shows that managed memory is OK, so I think that leak occurs in native memory (yes, there are some native calls in my application). How can I find the problem? Thanks! ...

Performance of WCF Web Service Call

I have a windows application that calls into a WCF web service. On the server side I am using S#arp Architecture as a base framework. When making calls to the server the application isn't as responsive as it should be with calls to the server taking in the region of a couple of seconds. I profiled the application with Ants Profiler ...

PHPMyAdmin's 'Query took' time differs from MySQL Profiling information

Using the new MySQL Query Profiler in PHPMyAdmin version 2.11.5, I got following results (PNG-version) Status Time (initialization) 0.00004 Opening tables 0.000059 System lock 0.000003 Table lock 0.000006 init 0.000013 optimizing 0.000004 statistics 0.000015 preparin...

Memory Profiling: How to detect which application/package is consuming too much memory

Hi, I have a situation here at work where we run a JEE server with several applications deployed on it. Lately, we've been having frequent OutOfMemoryException's. We suspect some of the apps might be behaving badly, maybe leaking, or something. The problem is, we can't really tell which one. We have run some memory profilers (like Your...

Using gprof with sockets

I have a program I want to profile with gprof. The problem (seemingly) is that it uses sockets. So I get things like this: ::select(): Interrupted system call I hit this problem a while back, gave up, and moved on. But I would really like to be able to profile my code, using gprof if possible. What can I do? Is there a gprof opti...

Is profile guided optimization possible with shared libraries in gcc?

Hi, I recently rolled out a new Toolchain on Linux, with gcc 4.5.0 and binutils 2.20 with gold. Now I was curious about this new thing PGO. While it's clear how it works with executables, I've not been able to find an answer on shared libraries. I found two unanswered posts on the gcc mailing list via google, that's all. So here's what...

Refactoring - Speed increase

How can I make this function more efficient. It's currently running at 6 - 45 seconds. I've ran dotTrace profiler on this specific method, and it's total time is anywhere between 6,000ms to 45,000ms. The majority of the time is spent on the "MoveNext" and "GetEnumerator" calls. and example of the times are 71.55% CreateTableFromReport...

Tracing/profiling instructions

I'd like to statistically profile my C code at the instruction level. I need to know how many additions, multiplications, divisions, etc I'm performing. This is not your usual run of the mill code profiling requirement. I'm an algorithm developer and I want to estimate the cost of converting my code to hardware implementations. For this...

Profiling tool for Clojure?

Hi, does anyone know of a good profiling tool or library for Clojure? I would prefer something that could be used from the REPL, along the lines of (with-profiling ...) in Allegro Common Lisp back in the day. Is there anything along those lines? Or do you have any experience with (non-commercial) Java profilers that work well with C...

Why does Java's socket.connect() consume 100% cpu resources?

I created a threadpool and gave it 50 tasks to connect to a server. So once it was done connecting, sending some data over, then disconnecting. It also has a read timeout set at 5 seconds (5000 long of course). I even set the thread pool to a max size of 1. I then fire this up, on linux, and ran htop (a better version of top) to check th...

How do I display java.lang.* object allocations in Eclipse profiler?

Using the Eclipse profiler, I am interested in number of allocated instances of classes from java.lang (for instance String). I also want to know stuff like number of calls to String.equals() etc. I use the "Object Allocations" tab and I shows all classes in my application and a count, but there is no mention of any standard java classe...

does such a c++ tool exist? [I dont know what to call it]

Hello, I am going through the process of trying to figure out how a library of code works. I would like some sort of tool that would analyze the program that I run off of the library and tells me what functions are called in what order by each thread. Does such a tool exist? What google terms would I use to find such a program? Note: ...

Running out of memory while analyzing a Java Heap Dump

Hi, I have a curious problem, I need to analyze a Java heap dump (from an IBM JRE) which has 1.5GB in size, the problem is that while analyzing the dump (I've tried HeapAnalyzer and the IBM Memory Analyzer 0.5) the tools runs out of memory I can't really analyze the dump. I have 3GB of RAM in my machine, but seems like it's not enough t...

regex based profiling in java

I've heard that there is an integrated facility in java to do profiling with regex based profiling point definitions. I'm however not able to find any info on the net. Does anybody know about such a possibility or anything similar? ...

looking for a good vc++ profiler, already checked previous posts

I'm looking for a good profiler for vs2008 professional edition, free or reasonably priced. I've already checked previous posts and tried about 8 profilers, but most of them are too basic or too detailed. Kindly suggest something, my requirements are as follows: It can be compiled, so that its well integrated with my application. I'm n...

Performance profiler for a java application

I need to optimize a java application. It makes some 3rd party calls. I need some good tool to accurately measure the time taken by individual api calls. To give an idea of complexity- the application takes a data source file containing 10 lakh rows, and it takes around one hour to complete the processing. As a part of processing , it ma...

Profilers for ASP.Net Web Applications?

I was recently wanting to do some profiling on an ASP.Net project and was surprised to see that Visual Studio (at least seems to be) lacking a profiler. So my question is what profiler do you use for ASP.Net? Are there any decent ones out there that are free? I've seen a few general .Net profilers but have yet to see one that can be ...