profiling

What is RtlPcToFileHeader?

I am profiling an application using VerySleepy 0.7. The application is written in C++ with Qt 4.6.x, compiled with VS 2005 and is running on Windows 7 Ultimate x64. The highest usage by far is a call to RtlPcToFileHeader Exclusive Inclusive %Exclusive %Inclusive Module 33.67s 33.67s 15.13% 15.13% ntdll It is not clear t...

Best practice for profiling web pages

Hello, I am trying to profile pages in my application. I would like to ask for best practices to follow to do this job either at an early stage by the developer using tools as Chrome Developer tool at the staging phase by using third party tools and methods Which are the best way to do this? What are tools available? ...

Question about jrat profiling

Hi, I am working on a code which runs as a service. Basically it listens for input and produce output accordingly. I am trying to profile a package using jrat. [We do not have a licence for Jprofiler and I couldnt set up the trial version to work properly]. I followed the instructions here: http://transferer.blogspot.com/2009/12/how...

Java Object memory usage - ibm jvm 1.4.2

Is it possible to find memory usage of object in java within application? I want to have object memory usage to be part of debug output when application runs. I don't want to connect using external application to VM. I have a problem that few classes eats up huge amount of memory and causes memory problems, my app gets crash. I need to...

Is the request timing information in rails accurate?

In a rails (2.3.8) app, my server log in development mode shows lines like these: Completed in 265ms (View: 212, DB: 8) What accounts for the missing 45ms? Even when repeating a request that does hardly anything, the timing information often reads: Completed in 14ms (View: 1, DB: 1) Is the remaining time anything to do with framew...

ZendFramework - Finding out what queries are being run - Easier way

Hi There, Was wondering if there is an easier way to see the queries are being being run by my models? I know the alternate options are xDebug and Firebug but was wondering an easier method. Anyone? Thanks ...

How can I profile an ASP.NET application running on a production server?

I have an ASP.NET application that is consistently using 75% - 100% of the CPU on a production server. How can I profile the application to figure out what part of the code is using up the most CPU? I have looked at a couple of different tools (Xte Profiler, EQATEC, dotTrace), but they all seem to want you to load and run the applicati...

Measuring total CPU time of a program that uses precompiled libraries (C++, Linux)

Hi everyone, I am currently stumbled into this problem and I'd love to hear some suggestions from you. I have a C++ program that uses a precompiled library to make some queries to PostgreSQL database. Now the problem is I want to find out the total (combined) cpu time it takes to do all routines described in the source code of the prog...

__CIasin and Is Arcsine much slower than sine in .NET?

I've been running som eprofile tests of a slow area of code. This is with Visual Studio 2008 and .NET 2 (fully patched). About 32% of my computation is used by the Haversine formula. This requires two sines, two cosines, a square root, and an arc sine - all using the standard .NET Math library (ie. Math.Sin, Math.Asin, Math.Sqrt). I've b...

Question regarding python profiling

I'm trying to do profiling of my application in python. I'm using the cProfile library. I need to profile the onFrame function of my application, but this is called by an outside application. I've tried loads of things, but at the moment I have the following in my onFrame method: runProfiler(self) and then outside of my class I have t...

Debugging slow functions in C programs (built by gcc)

Having source like this: void foo() { func1(); if(qqq) { func2(); }; func3(); func4(); for(...) { func5(); } } I want to obtain info like this: void foo() { 5 ms; 2 times; func1(); 0 ms; 2 times; if(qqq) { 0 ms; 0 times; func2(); 0 ms; 2 times; }; 20 ms; 2...

How to tell gcc to instrument the code with calls to my own function each _line_ of code?

For example, there is the source: void my_special_debugging_function(const char* function_name, const char* file_name, int line_number); void func1() { func3(); func4(); } void foo() { func1(); if(qqq) { func2(); }; func3(); func4(); for(...) { func5(); } } It should compile as: v...

Where is the Query Analyzer in SQL Server Management Studio 2008 R2?

I have some SQL thats getting run and it is taking to long to return the results / parse / display, etc. in a asp.net c# application. I have SQL Server Management Studio 2008 R2 installed to connect to a remote SQL Server 2000 machine. Is there a Query Analyzer or profiler I can use to see whats going on? I'm not sure if I'm sending too...

What profiler should I use to measure _real_ time (including waiting for syscalls) spend in this function, not _CPU_ one.

The application does not calculate things, but does i/o, read files, uses network. I want profiler to show it. I expect something like something like in callgrind that calls clock_gettime each proble. Or like oprofile that interrupts my application (while it is sleeping or waiting for socket/file/whatever) to see what is it doing. I w...

New Relic v/s Yourkit for profiling and testing

Hello People, Which is better for profiling between Yourkit and New Relic(as only these two options are provided by management) for our web application, which is developed using the following :- JDK 1.5 Struts 1.3 (with tiles 1.3) EJB 3.0 Oracle 9i Velocity (for email templates) Oracle 10g WebServices (JDK 1.6) considering their pro...

Memory use visual monitoring

Hi! I'm developing a software in C that uses a lot of memory and I need to monitor this. I know netbeans has this option but it needs Sloaris Studio. Do you know some grafical tool to watch the use of memory, CPU and is possible I/O? How do you usually do this things? PD: I know valgrind to search for memory leaks, but I'm searching s...

How to make gdb get stacktrace repeatably?

Like in for((;;)) { gdb -batch -n -ex 'set pagination off' -ex 'thread apply all bt' ffplay_g `pidof ffplay_g` >> /tmp/qq; } , but faster, without reloading GDB and symbols every time? Backtraces need to be taken by timer, not by triggering some breakpoints. ...

Profile python program that forks itself as a daemon

Is it possible to run cprofile on a mult-threaded python program that forks itself into a daemon process? I know you can make it work on multi thread, but I haven't seen anything on profiling a daemon. ...

How to Profile Google App Engine Java Servlet

I have a java google app engine servlet that writes to the datastore amongst other things. It runs really fast locally. However, on app engine server each request nears 2 seconds (event after ramp up). How can I go about profiling my servlet to identify which pieces of my code are taking long? So far the only way I can think of is to lo...

YourKit in Production

I have recently downloaded a trial version of YourKit and after playing with it for a while it looks great, but I am concerned about running it in the production environment. Previous profilers I have used have put unacceptable overhead on the servers. Does anyone know the typical overhead of the YourKit software? Or has anyone had any ...