profiling

How to profile JRuby code?

I'd like to profile my JRuby app. For MRI I always use ruby-prof, but I don't think this works on JRuby. I don't want to use a Java-profiler, because it won't give me the ruby line numbers. Is there a jruby-prof? ...

How do I use !gcroot

From within visual studio immediate window with SOS debugging extension loaded I can do !dumpheap -stat Then I get something like this: total 108,014 objects Statistics: MT Count TotalSize Class Name ... 0x00be209c 135 714108 System.Object[] 0x79b925c8 218 2659728 System.String 0x00be2c3c ...

Understanding Python profile output

I'm trying to use the Python profiler to speed up my code. I've been able to identify the specific function where nearly all of the time is spent, but I can't figure out where in that function the time is being spent. Below I have the profile output, which shows that "appendBallot" is the primary culprit and consumes nearly 116 seconds...

Using dotTrace with a 2005 web app

I am trying to run dotTrace 3.1 against a 2005 project using the ASP.NET Development Server option. The settings I am using are: ASP.NET Development Server - checked Path to web-server root: c:\projects\fooProject Virtual path on server: /barApplication Port: 81 (automatically detected) This will run, but no web page comes up, so I s...

Method Profiling Using Attributes

Is it possible to profile individual methods via attributes in .NET? I am currently trying to locate some of the bottle necks in a large legacy application that makes heavy use of static methods. Integrating a framework is simply not an option at the moment. Since most of the calls use static methods, interfaces and dependency injec...

How to set the maximum memory usage for JVM?

I want to limit the maximum memory used by the JVM. Note, this is not just the heap, I want to limit the total memory used by this process. ...

How to measure current load of MySQL server?

How to measure current load of MySQL server? I know I can measure different things like CPU usage, RAM usage, disk IO etc but is there a generic load measure for example the server is at 40% load etc? ...

Measure Java's HttpConnection steps (header & body) for metric analysis?

Scenario I'm doing analytics of a data connection being made via Java's HttpConnection. Specifically, I want to measure: Time it took to receive the response header (not the full response) Time it took to download the data (not the full request, the response) To me, it seems as if the HttpConnection class is not sophisticated enough ...

Profile CPU usage in Java on a Mac

I'm looking for a way to measure the cpu usage for different methods in my java code. I understand that this can be achieved using JNI and C, but I wouldn't know where to start... The purpose of this is to compare different algorithms, and provide qualitative results. ...

.NET Attachable Profiler

Hi All, Is there any process-attachable .NET profiler available? The problem faced is that I am currently wanting to profile an online-only ClickOnce application, which cannot be started any other way other than the website. Anybody have any ideas? Thanks, Kyle ...

Multiple Join or subquery query optimization SOLVED

I have this query, which executes in 1 or 2 seconds for a given case: Select Count(*) as qtty From event e Join org o On o.orgID = e.orgID Join venue v On v.venueID = e.venueID Where Match( e.name, e.description ) Against ( $keywords ) And e.site_id = $site_id And e.display <> 0</code> I...

Tools to profile performance of .NET Compact Framework applications

The only thing I've found is EQATEC Profiler. Are there any other profilers out there that can be used to profile .NET CF apps? ...

Start javascript profiling in IE from js-code

I want to start and stop js-profiling from my js-code in Internet Explorer. Like we can do it in Firefox through: - console.profile() - console.profileEnd() Does anybody know whether it is possible in IE? ...

How do you limit PHP memory usage when processing MySQL query results?

So I have a PHP page that allows users to download CSV for what could be a whole bunch of records. The problem is the more results the MySQL query returns, the more memory it uses. That's not really surprising, but it does pose a problem. I tried using mysql_unbuffered_query() but that didn't make any difference, so I need some other wa...

Profiling PHP app, 50% of time busy constructing classes -- is this OK?

I have a web application written in PHP. It uses MySQL for data storage. Today I decided to profile it to find bottlenecks in code and find which parts of it are running slower that the others. The usual stuff. I did a lot of work and now my page loads in less than 0.05 seconds on my desktop. But now my profiler tells me that half of th...

Which profiler is more accurate: OProfile or Google Performance Tools ?

I found two great profilers: OProfile Google Performance Tools Have anyone tried them both? Which is better? ...

How can I profile tomcat on mac os X?

Dear All, I am running an independent (I mean not inside any IDE) tomcat instance. I want to profile my application because it seams to respond really slow in a particular use case. So, I tried installing TPTP on my mac os x 10.4 (tiger) but it seams that there is no version available. Then I tried to just set "JAVA_OPTS="-Xmx512m -Xru...

Show SQL executed per request in ASP.NET MVC using LINQ to SQL

Is it possible to show the SQL that was executed for a particular request in an ASP.NET MVC app? I would like to show how many queries, and what they were on the bottom of pages during debugging. ...

Performance difference on insert-sort in C and python

I was curious about the performance of insert-sort using C and python but the results I've got just make me think if I've done something wrong. I suspected that C would be faster, but not that much. I've profiled both codes and the insert-sort function is the place where the time is most spent. Here is the C function: void insert_sort...

Tracing a ruby process as it is running

Hi folks! I am running a ruby code that has a significant number of http (web and api) requests, as well as some pretty intensive data processing. As you might expect it is pretty slow, and i want to find out where the main bottle necks are. I do not think i need a full blown profiler (yet), but want some way of tracing the process as it...