instrumentation

Instrumenting a UI

How are you instrumenting your UI's? In the past I've read that people have instrumented their user interfaces, but what I haven't found is examples or tips on how to instrument a UI. By instrumenting, I mean collecting data regarding usage and performance of the system. A MSDN article on Instrumentation is http://msdn.microsoft.com/en-...

Instrumenting Database Access

Jeff mentioned in one of the podcasts that one of the things he always does is put in instrumentation for database calls, so that he can tell what queries are causing slowness etc. This is something I've measured in the past using SQL Profiler, but I'm interested in what strategies other people have used to include this as part of the a...

Is it possible to get Code Coverage Analysis on an Interop Assembly?

I've asked this question over on the MSDN forums also and haven't found a resolution: http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3686852&SiteID=1 The basic problem here as I see it is that an interop assembly doesn't actually contain any IL that can be instrumented (except for maybe a few delegates). So, although I can p...

Trace vs Debug in .NET BCL

It seems that the System.Diagnostics.Debug and System.Diagnostics.Trace are largely the same, with the notable exception that Debug usage is compiled out in a release configuration. When would you use one and not the other? The only answer to this I've dug up so far is just that you use the Debug class to generate output that you only ...

Using "top" in Linux as semi-permanent instrumentation

I'm trying to find the best way to use 'top' as semi-permanent instrumentation in the development of a box running embedded Linux. (The instrumentation will be removed from the final-test and production releases.)My first pass is to simply add this to init.d:top -b -d 15 >/tmp/toploop.out &This runs top in "batch" mode every 15 seconds. ...

winforms instrumentation . .

What is the best pattern for instrumentation. I have an application and i want to be able to track metrics on everytime a users does a number of functions in the app (brings up a form, views a certain feature, etc) but i dont want to have code all over the application that is doing this instrumentation. what are my options here? At th...

AOP for winforms . .

what is the best way to capture user clicks in my winform application with out making the code very complicated. is AOP the answer ? any good links or examples of this to track instrumentations . . ...

LIghtweight instrumentation

I have a winforms app and i want to keep track of every time a user clicks certain buttons, etc as well as other actions. What is the best way for me to keep track of this information and then put it together so i can run metrics on most used features, etc. This is a winforms app and I have users around the world. ...

Plugging in to Java compilers

I have a post-compilation step that manipulates the Java bytecode of generated classes. I'd like to make life as painless as possible for library consumers, so I'm looking at ways I can make this process automatic and (if possible) compiler agnostic. The Annotation Processing API provides many of the desired features (automatic service ...

Is Object constructor called when creating an array in Java?

In Java, an array IS AN Object. My question is... is an Object constructor called when new arrays is being created? We would like to use this fact to instrument Object constructor with some extra bytecode which checks length of array being constructed. Would that work? ...

Clover on Java EE Container

Hi, I would like to run Atlassian Clover in a production environment (I don't have an issue with overhead ). Does anyone have experience with this, or can you direct me how to do it? My goal is to get clover reports based on real users actions. I'm using JBoss + JDK 1.5 ...

Performance tuning using instrumentation model

Hello everyone, If I use instrumentation model as described here to profile .Net application performance, it means the profile tool will change the executable code of the to be profiled executable to insert performance measure code? So my original executable code is modified? http://msdn.microsoft.com/en-us/library/ms242753(VS.80).aspx...

How do I make the web browser log all activity, including requests, responses, cookie activity, to a log file that I can inspect?

I am debugging a session mismatch problem in a web application. There are several servers involved, and the user is passed between them while holding session tokens and cookies. The coordinating point is the browser. I want to know in detail what actions the browser is taking, basically a client equivalent to the server log. It would ...

bytecode instrumentation using ClassFileTransformer.transform

I have written a Class with premain method and inside that method I have added a ClassFileTransformer to Instrumentation (Instrumentation.addTransformer()). I have invoked a application using java -javaagent:<path_to_agnet.jar> <application> However ClassFileTransformer.transform() method is not being invoked. I have observed that p...

Does .NET support Windows Eventing 6.0 ?

I want to use the Windows Eventing 6 API from a C# application to log messages to a specific channel in Windows Server 2008 event log. There is a good example on how to use it but it's only C++. In the example it's mentioned that .NET doesn't support Windows Eventing 6. There are 2 examples in http://msdn.microsoft.com/en-us/magazine/cc1...

What .NET instrumenting framework would you recommend and why?

I only have experience with log4net however that does not mean that there are not better fish in the sea. I don't have time to go fishing but I do I have 60 seconds to post to SO. So what all has everyone used and their experiences with it? I understand this is subjective, but please provide concrete reasons of why you have your opin...

Instrumentation (diagnostic) library for C++

I'm thinking about adding code to my application that would gather diagnostic information for later examination. Is there any C++ library created for such purpose? What I'm trying to do is similar to profiling, but it's not the same, because gathered data will be used more for debugging than profiling. EDIT: Platform: Linux Diagnostic i...

.NET Single Line Logging (ala Trace.Write/WriteLine) using Instrumentation.Logging

Hello Everyone, My question is whether it is possible to get line/multiline (very unsure of correct term for this) behaviour of the Trace.Write and Trace.WriteLine methods but using the Microsoft Instrumentation Logging framework in .NET 2.0. Desired Output Hello World! Oh Hai. What I Currently Have Trace.Write("Hello "); Trace.Wri...

What information should I be logging in my web app?

I finishing up a web application and I'm trying to implement some logging. I've never seen any good examples of what to log. Is it just exceptions? Are there other things I should be logging? What type of information do you find useful for finding and fixing bugs. Looking for some specific guidance and best practices. Thanks Follow up...

PIN or Valgrind with Managed C++?

I was wondering what experiences you have had using instrumentation tools with managed C++? PIN: http://www.pintool.org/ Valgrind: http://www.valgrind.org Thanks. ...