profiling

What tools and techniques can I use to detect and isolate high memory usage in .NET applications which call into significant unmanaged code?

Suppose I have a WinForms .NET application written in C#. This application allocates large amounts of memory from both the managed and unmanaged heaps. I can (relatively) easily figure out the allocation details (who, when, how much, etc.) of the managed objects using tools like Red Gate ANTS Profiler (which I have not used) or JetBrai...

How to test an application?

I have been building IMO a really cool RIA. But its now close to completion and I need to test it to see if there are any bugs or counter-intuitive parts or anything like that. But how? Anytime I ask someone to try to break it, they look at it for like 3 minutes and say "it's solid". How do you guys test things? I have never used a UnitT...

How can I profile file I/O?

Our build is annoyingly slow. It's a Java system built with Ant, and I'm running mine on Windows XP. Depending on the hardware, it can take between 5 to 15 minutes to complete. Watching overall performance metrics on the machine, as well as correlating hardware differences with build times, indicates that the process is I/O bound. It a...

What are the key differences between Visual Studio Team Systems profiling tools and tools like ANTS or dotTrace?

I'm trying to understand the key differences between the profiling tools built into Visual Studio Team System and those provided by third parties like Red-Gate and Jet Brains. Can anyone provide some links? I'm having a difficult time finding some good comparisons. ...

Finding a Memory Bubble

This is either ridiculously simple, or too complex . . . . In our application there is a form that loads some data from the database and displays it in the grid (putting it simply). When the data is refreshed the total memory usage climbs by about 50K (depending on how much data is displayed no doubt). Sounds like a memory leak, but w...

IIS7 Profiling

Is there a way to profile IIS7? (freeware?) Number of connections Bandwidth usage Errors (Event Viewer?) -... thx, Lieven Cardoen ps: Something similar to mssqlserver profiling ...

C/C++ AQtime profiler questions

I need to profile my console program with AQ. It is in one big file (for optimizations purposes). void function1(); void function2() // etc more declarations int main{ //alot of loops, and function uses function1(); function1(); } Profiling on "Elapsed time" default profile just gives me that main is using 100% and that i...

What is Python's "built-in method acquire"? How can I speed it up?

I'm writing a Python program with a lot of file access. It's running surprisingly slowly, so I used cProfile to find out what was taking the time. It seems there's a lot of time spent in what Python is reporting as "{built-in method acquire}". I have no idea what this method is. What is it, and how can I speed up my program? ...

Use aspectj to profile selected methods

I'd like to use aspectj to profile a library. My plan was to mark methods that require profiling with an annotation: @Profiled("logicalUnitOfWork") And then have an aspect that would fire before and after methods that would use the logicalUnitOfWork to highlight the profiled content. So, my pointcut to start with looks like this. No...

Instruments - Target terminated too early to collect data

Hi I am using my iPhone as a development device. Whenever I run an application on the iPhone with Instruments (Instruments->Launch Executable->my app), the app is launched but I get the error mentioned in the subject in Instruments. I have tried removing the device from xcode and adding it again as a development device but I still get ...

Why do profilers need administrative privs (on Windows)

I've been evaluating profilers and memory checking tools for native C++ programs on Windows and all of them want to be installed and run with administrator privileges. I rarely log in as admin on my machine. If I need to install something or do something that requires administrative privileges, I use runas and it works pretty well. Is i...

What are some resources I can use to learn profiling/optimizing?

I just inherited a C# project that runs way to slow and will have to start optimizing it. What I wanted to do first is learn a little more about profiling/optimizing since I didnt have to do it before. So the question is where do I start, what books/blogs/articels can i read? I do know OF the .net profilers like ANTS profiler and so on,...

Self-Profiling using Proxy class

Given an interface public interface IValueProvider { object GetValue(int index); } and a tree structure of instances of IValueProvider similar to a math expression tree. I want to measure the time that is spent in the GetValue method of each node at runtime without an external profiler. GetValue could do anything that i don't know ...

How do I profile memory usage in Python?

I've recently become interested in algorithms and have begun exploring them by writing a naive implementation and then optimizing it in various ways. I'm already familiar with the standard Python module for profiling runtime (for most things I've found the timeit magic function in IPython to be sufficient), but I'm also interested in me...

Tips for profiling misbehaving Emacs lisp?

I customize Emacs a lot. Recently, I added something to my .emacs configuration that sporadically pegs my CPU at 100%, but I really don't know what it is. If I press C-g a bunch of times, eventually I'll get a message below the minibuffer asking me if I want to auto save my files and then if I want to abort emacs entirely. If I keep sa...

How To Do Performance Profiling in Visual Studio 2008 "Pro"

Hi, Microsoft make this piece of software called "Visual Studio 2008 Professional". I have found that there doesn't appear to be an application performance profiler or something similar in it, making it seem not so "professional" to me. If Microsoft don't include a profiler, what are your third party options for time profiling for Visu...

sql profiler shows nhibernate running queries twice?

Hi All, I have been doing some performance analysis on an application I am working on. The application is web-based (asp.net) using an old version of NHibernate (1.0) on MSSQL Server (2005). Running profiler against the application seems to show something a little odd, in that we seem to be querying objects twice, once as a direct que...

How can you profile a Python script?

I've seen a quite a few questions on the Project Euler and other places asking how to time the execution of their solutions. Sometimes the given answers are somewhat kludgey - i.e., adding timing code to __main__, so I thought I'd share my solution. ...

Getting the symbols with xperf

I read through the docs and used the commands outlined however for some reason I dont seem to be getting any symbols, just a series of "unknowns" in the function column of the summary table for everything except the topmost set of the app I was trying to debug.... I set the enviromental variable to the microsoft server and the direcories...

GDI performance on Windows mobile or CE device

I have a Windows CE application that uses a lot of vector graphics and in places is quite slow. I'm currently using GDI for rendering via a bitmap for flicker free refreshes. Typically, I'm windowing in on part of a large 3d map. On some devices (e.g. 166mhz SH4), this gets slow with 3-5 second refresh times for big datasets. My ques...