profiling

Profiling native methods in Java - strange results

I have been using Yourkit 8.0 to profile a mathematically-intensive application running under Mac OS X (10.5.7, Apple JDK 1.6.0_06-b06-57), and have noticed some strange behavior in the CPU profiling results. For instance - I did a profiling run using sampling, which reported that 40% of the application's 10-minute runtime was spent in ...

c# windows app - profiling peak memory usage and identifying trends

I have a long running console app running through millions of iterations. I want to benchmark if memory usage increases linerally as the number of iterations increases. What would be the best way to go about this? I think I really only need to be concerned with Peak memory usage during a run right? I basically need to work out what is ...

Netbeans memory management

I have some Java code that is throwing out of memory exceptions after running for a while. I've investigated the netbeans profiler, and when I do one specific operation the Surviving Generations Metric goes up. However when I reset the program status (not kill it), the Surviving Generations Metric does not decrease. Why is the survivi...

How to measure cpu over-head introduced by the hprof profiler attached to a jvm

Hi I'm running IBM's jvm (jdk 5.0) with the options -XrunHprof:format=b I'm aware that instrumenting jvm with hprof involves a performance penality. I would like to quantify that penality. I know that one way to do this is to take off the hprof profiling and run the application, and compare the application's cpu utilization in both cas...

Profiling instructions

I want to count several cpu instructions in my code. e.g. I would like to know how many additions, how many multiplications, how many float operations, how many branches my code executes. I currently use gprof under Linux for profiling my c++ code but it only gives the number of calls to my functions, and I manually estimate the number o...

What's faster IN or OR?

In T-SQL what's faster? DELETE * FROM ... WHERE A IN (x,y,z) Or DELETE * FROM ... WHERE A = x OR A = y OR A = z In my case x, y and z are input parameters for the stored procedure. And I'm trying to get the performance of my DELETE and INSERT statements to the best of my abilities. ...

JetBrains dotTrace, is it possible to profile source code line by line? else I need another tool

I am using JetBrains dotTrace, I've profiled my app which is entirely CPU bound. But the results as you walk down the tree don't sum to the level above in the tree, I only see method calls not the body lines of the node in questions method. Is it possible to profile the source code line by line. i.e for one node: SimulatePair() 99.04...

Which XSLT profiler should I use?

I'm in the market for an XSLT profiler. I'm using the Xalan-j XSLT processor from Apache. I'd like to be able to run the profiler under Windows or Linux as we have different teams using the same XML and XSLT on different platforms. The tool needs to be able to work with exslt extensions. The tool needs to be able to work with l...

Using TPTP to profile an Eclipse Plugin

I’m currently trying to profile an Eclipse Plugin using the TPTP tools. However, I have run into issues when trying to profile an plugin. I can profile a Java application fine, however when I try to profile an plugin, the runtime workbench fails to load and the profiling terminates after a few seconds. I’m at a lost to what I’m doing ...

How to do an active sleep?

I am running some profiling tests, and usleep is an useful function. But while my program is sleeping, this time does not appear in the profile. eg. if I have a function as : void f1() { for (i = 0; i < 1000; i++) usleep(1000); } With profile tools as gprof, f1 does not seems to consume any time. What I am looking is a ...

Profiling CPU usage of ASP.NET web app - but not the database!

I'm seeing consistently high CPU usage for my ASP.NET web application (on the live production box only, naturally....!) and I'm trying to narrow down the cause - it's basically maxing out a quad core Xeon box and there's no way it should be able to do that! The CPU usage of the web process is generally higher than that of the DB proces...

Systemtap effect on performance

I'm looking for some real information about the effect of systemtap on performance. I know that static kernel probes are documented somewhere on their website (with stats), but what about userspace probes? I saw this post on their mailing list (http://sourceware.org/ml/systemtap/2009-q1/msg00518.html) which points at a possibility of si...

What is a good performance profiler for iPhone games made w/ objective-C and XCode?

I'm writing an iPhone game in objective-C using XCode. I'd like to profile the performance of my code. What is a good profiler to use? ...

JProbe Snapshots and setting recodring level options

Hi there, I am trying to profile my java application with JProbe. I am little confused with Snapshots and 'Set Recording Level' options. I am not able to understand the relation between them. Can somebody please take pain to explain me or point to any online articles which can clarify my confusion. Thank you very much, Chaitanya ...

Profiling a VxWorks system

We've got a fairly large application running on VxWorks 5.5.1 that's been developed and modified for around 10 years now. We have some simple home-grown tools to show that we are not using too much memory or too much processor, but we don't have a good feel for how much headroom we actually have. It's starting to make it difficult to do...

How to spot memory leaks in profiler?

I have an AIR/Flex app I made, I have a few people testing it and everyone is reporting that after leaving it running for a while, it is making all there machines run very slow. It runs fine at first so this must be a memory leak somewhere. I used the profiler on this and the only thing that shows as using a substantial amount of memory ...

Profiling Python Scripts running on Mod_wsgi

How can I profile a python script running on mod_wsgi on apache I would like to use cProfile but it seems it requires me to invoke a function manually. Is there a way to enable cProfile globally and have it keep on logging results. ...

Lock profiling in 2.6 linux kernel

How can I do the lock profiling (spin and other kind of locks) in 2.6 Linux kernel? I want to get the lock contention numbers for few locks which I have added in my module. Is there any .config option which I can enable and get the profile or any other tool? ...

process connecting to another process to gather profile information?

Are there any built-in mechanisms in .Net that would allow us to write two programs, A and B. A is a process with special hooks onto which B attaches itself. This would allow B to gather whatever information those hooks provided. In particular, it would be nice to be able to dial into another of our process and gather suchs metrics li...

What is a good profiling/performance monitor app/method for Flash/Flex?

Hey. I'm looking to see the memory usage and processor load of an ActionScript 3 project. What applications/methods could I use for that purpose? ...