profiling

OutOfMemoryException - out of ideas

Hi I know there is no simple answer to my question but I would appreciate ideas, guides or some sort of things-to-look-at list I have a net Windows service that is constantly throwing OutOfMemoryException. The service has two builds for x86 and x64 Windows. However on x64 it consumes a lot more memory. I have tried profiling it with va...

Automate gdb: show backtrace every 10 ms.

Hello I want to write a script for gdb, which will save backtrace (stack) of process every 10 ms. How can I do this? It can be smth like call graph profiling for 'penniless' (for people, who can't use any sort of advanced profiler). Yes, there are a lot of advanced profilers. For popular CPUs and for popular OSes. Shark is very impres...

How to Profile a C-Program in a Loop of Shell Script, Using Shark on Mac?

Hi all, I have a question about Shark-profiling on mac. Say if I have a C-program, compiled with: gcc -o mycprog mycprog.c -g -pg and also I have a shell script something like: for file in ($SomeDirectory) do mycprog $file done I need to profile the average performance for all files in $SomeDirectory. Where should I put the ...

Is there an easy way to integrate a profiling tool with Code::Blocks?

I love working with the Code::Blocks (C++ IDE), and I got to wondering... is there a tool you can use to profile your code that integrates with Code::Blocks? I'm thinking of a Windows tool right now, but a Linux tool would be good too. Maybe something like valgrind but for Windows. ...

C# Confusing Results from Performance Test

I am currently working on an image processing application. The application captures images from a webcam and then does some processing on it. The app needs to be real time responsive (ideally < 50ms to process each request). I have been doing some timing tests on the code I have and I found something very interesting (see below). clearL...

Profile memory-performance for part of an rails project

I want to test the profile usage of an important library-class of my rails-project. It uses ActiveRecord so I need all rails dependencies to profile it. As far as I know, I need a patched ruby (rubygc) so script/profile and script/benchmark can track memory usage. I tried to follow this official guide to patch the source code of ruby 1....

Is it possible to profile CPU / memory inside an Adobe AIR application?

Couldn`t find any ActionScript native APIs even in the beta documentation, am I right supposing that this means the only way to measure CPU / memory consumption is by cooking up a custom native solution, hooking it up with AIR and making it work on each targeted platform? Basically the aim is to be able to have this information availabl...

How to View Android Native Code Profiling?

I started my emulator with ./emulator -trace profile -avd emulator_15. I then tracked down the trace files to ~/.android/avd/rodgers_emulator_15.avd/traces/profile, where there are six files: qtrace.bb, qtrace.exc, qtrace.insn, qtrace.method, qtrace.pid, qtrace.static. I can't figure out what to do with these files. I've tried both d...

Java application profiling / tracking

I have a closed source Java application for which vendor has provided APIs for customization. As I have no other documents, i rely completely on the API's javadoc. I want to trace what methods are actually called in different classes for a particular use case. Is there any way to do that with eclipse? ...

Profiling Android Native Code: "undefined reference to `mcount'" and "warning: -ffunction-sections disabled; it makes profiling impossible"

I was able to get profiling information for native code. 67.5%-75% of my time is spent in one (unknown) block, so to get more information, I went back to recompile the native libraries. I added -ggdb and -pg to my flags, then attempted recompilation. This gave me a "warning: -ffunction-sections disabled; it makes profiling impossible"...

in free(): error: junk pointer, too high to make sense Segmentation fault: 11 (core dumped) gprof

I am trying to profile my application. For this I compiled my code with -pg and -lc_p option, it compiled successfully During run time I am getting the following error. in free(): error: junk pointer, too high to make sense Segmentation fault: 11 (core dumped) Doing GDB gives error as. (gdb) b main Breakpoint 1 at 0x5124d4: (gdb) r w...

How do I connect to a Java command-line tool with the YourKit Java Profiler?

I've build a command-line tool in Java, which I would now like to profile with YourKit. I launch the command-line tool with something like: $ java -classpath .:foo.bar.jar com.foobar.tools.TheTool arg1 arg2 arg3 It runs to completion in less than 2 seconds. After reading http://www.yourkit.com/docs/80/help/agent.jsp, I tried the fol...

Out of Memory - web applications

Hi all, I am trying to figure out why Jetty 6.1.22 is running out of memory on my laptop. I have 2 web applications running JBoss Seam, Hibernate (with EHCache), and separate Quartz scheduler instances. With little load, the server dies throwing OutOfMemory. What can I look for? Would you think that I am not properly closing handles...

I need to use profiler in my IDE.

Hello I am using RSA7 as IDE, I need to use profiler in my IDE for memory analysis. Can any one suggest me From where I can free download it? How can I use it with RSA7? Many Thanks ...

Optimizing Python code with many attribute and dictionary lookups

I have written a program in Python which spends a large amount of time looking up attributes of objects and values from dictionary keys. I would like to know if there's any way I can optimize these lookup times, potentially with a C extension, to reduce the time of execution, or if I need to simply re-implement the program in a compiled ...

Good .net4 profiler

What is a good profiler for .NET 4.0? I'm willing to spend some money, but not too much (say up to £50) I'm developing games for windows phone and xbox using XNA, which means that the projects are commercial. I mention it because I've seen several which are free for non commercial use. Extra points for Visual studio integration. Nb. I...

Compute jvm heap size to host web application

Hello, I want to host a web application on a private JVM they offer 32, 64, 128, 256 MB plans. My web application uses Spring. And I store some objects for every logged in user session. My question is: How can I profile my web app to see how much heap size it needs so I can choose a plan?, How can I simulate hundreds of users logged in...

Code Profiling of VSTO application

I'm looking for a free code profiler (performance profiler, not a memory profiler) which works for VSTO applications (specifically Excel in my case, but I gather that if it works for one, it should work for all). I have tried Eqatec Profiler, but it can't seem to launch the application from the profiler (The Run app button is greyed o...

Create a New .Net Profiler Api

Hi everybody! i m a new programmer in .Net Profiler and Visual C++, i read many forums and weblogs for .Net Profiling and i have this question. my Profiler application must be a unmanaged code or i can use some class in .Net in my application? and what type of project i must create ATL with MFC Or ..? another question is how can i re...

Macros giving problems with dladdr()

I have implemented tracing behavior using the -finstrument-functions option of gcc and this (simplified) code: void __cyg_profile_func_enter(void *this_fn, void *call_site) { Dl_info di; if(dladdr(this_fn, &di)) printf("entered %s\n", (di.dli_sname?di_dli_sname:"<unknown>")); } This works great, except for one thing: m...