profiling

Performance tuning / Profiling of grails apps

What are your tricks / resources for performance tuning a grails app? I'm developing my first serious grails application, and got the basic functionality to work, so now I'd like to make it go faster. There are some operations that should not take very long but do, and an one that I know can never be fast, but which takes too long even ...

How to compute accurately the time it takes a Java program to write or read a file ?

How to compute accurately the time it takes a Java program to write or read a number of bytes from/to a file ? It is really important that the time is being measured accurately. (The time should be computed by the program itself). ...

Is there a way to get function name inside a C++ function?

I want to implement a function tracer, which would trace how much time a function is taking to execute. I have following class for the same:- class FuncTracer { public: FuncTracer(LPCTSTR strFuncName_in) { m_strFuncName[0] = _T('\0'); if( strFuncName_in || _T('\0') != strFuncName_in[0]) { _...

Flex Builder Profiling: can you programmatically start/stop profiling?

I just got Flex Builder Professional for the profiling support, and although I can make the profiler work, I am having trouble isolating samples to just a section of my code. Trying to click "clear profiling data" and "stop collecting" in the UI just isn't cutting it. I'd like to be able to, in my code, do something like: startProfilin...

benchmarking django apps

I'm interested in testing the performance of my django apps as I go, what is the best way to get line by line performance data? note: Googling this returns lots of people benchmarking django itself. I'm not looking for a benchmarks of django, I'm trying to test the performance of the django apps that I'm writing :) Thanks! edit: By "l...

Javascript Performance Optimisation?

Hey Guys, Just wondering what the best tool is to really check JS scripts and look at ways of improving overall performance to the "utmost maximum" in terms of size and speed? ...

How to debug JVM resources loading?

Hi everybody, this is my first question here in stackoverflow (and I hope not the last one :P). To debug class loading in a JVM we can use the param -verbose:class, but... Anyone knows how to debug resources loading (e.g. properties files)? Thank you in advance! ...

Best way to profile memory usage in a Java application?

I realize that similar questions have been asked about this before here on SO, but let me describe exactly what I need to do: I have a set of tests which run a command line java application and I'd like to add memory profiling to them. One option I see would be to add code (possibly using 3rd party tools/libraries) to my application th...

is there a sql server profiler for sql express

is there a sql server profiler for MSsql expess ? maybe an open source one ? or maybe just a tool that helps me see what query is passed to the database ? ...

rails ruby-prof and benchmark testing

I'm running Rails 2.2.2. I've read a few articles about ruby-prof and profiling a rails app. And I'm confused as to how things are really working. I was originally using this tutorial http://snippets.aktagon.com/snippets/255-How-to-profile-your-Rails-and-Ruby-applications-with-ruby-prof to profile my app, and it works. This involves...

C# Saving/Loading richtext speed issue

Hello, I am currently trying to tackle a speed issue involving loading and saving richtext. Here are the details. In my application I have a Question class which needs to be able to store two richtexts. At the moment these two richtexts are being stored in the Question class as TextRanges. As far as saving/loading goes I am using TextRan...

System-wide continuous linux library profiling

Let's say I want to profile usage of a single library which is used in many apps in the system. I'm ok with only statistical profile, not an accurate one (but that one would be nice too). What I do not want to do is to recompile every running program with profiling support. I'd like the profiling information to be dumped either periodic...

What Java application is available to stress-test a virtual machine?

I am interested in ways to stress-test as well as benchmark the SANOS operating system kernel. ...

Limiting Profiling in Visual VM

I am trying out the VisualVM program that comes with the new JDKs. I am doing profiling on it and trying to profile CPU on only methods in a particular package. I put the following in the "Profile Only Classes:" jig.* Where jig is the package I want to instrument. Unfortunately I get back results on other methods that are not in tha...

Profiling disk access

Currently I am working on a MFC application which reads and writes in to the disk. Sometimes this application runs amazingly fast and sometimes it is damn slow. I am guessing that it is because of the disk access involved, hence I want to profile it. These are some questions in this regard: (1).Currently I am using AQTime profiler to pr...

How to tune performance of hsqldb/hibernate app

I have an open source Java application that uses Hibernate and HSQLDB for persistence. In all my toy tests, things run fast and everything is good. I have a client who has been running the software for several months continuously and their database has grown significantly over that time, and performance has dropped gradually. It final...

How can a shell encryption program use less user time?

Update2: Ported to autotools and uploaded to SourceForge. Update: I am going to run a few more rigorous tests on this but I believe the issue is related to caching and ordering of the two test cases may be significant. Also I know the encryption is pathetic, duplicated in two files, and the code is less than first draft quality. I ...

Finding which functions are called in a multi-process program without modifying source?

I'm working on a project where I need to find which functions get called in various Linux programs (written in C) given particular inputs. My current approach has been to compile a program with -pg (profiling option), run it, and find which functions get called by processing gprof's output. Only functions that are called at least once ap...

Are there known false positives issues with Valgrind?

Hello, Are there any known false positives with Valgrind? (myself I get a 'Conditional jump or move depends on uninitialised value(s)' with the 'fmemopen' function, writing in 'c' and gcc, can I be sure it's real?) EDIT: are there known issues that are not in the suppression files? Are there some things one can do in a program, that ...

Profiling tools for GUI

I'm trying to profile a Qt application that uses a lot of animations. Platform is XP. I am very interested in compating CPU utilization between runs to get a high level view of how changes in the app effect cpu usage. I have tried VTune and Quantify. I can't seem to configure VTune to do what I want. The percentages I am able to gener...