tracing

Richer logging/tracing status for C++ applications

There are plenty of logging/trace systems for letting your program output data or strings or state as it runs. Most of these let you print arbitrary strings which you can view live or after your program runs. I noticed an ad here on SO for Smartinspect which seems to take this to a higher level, giving stack traces for each log, fancier...

Efficient way of truncating a trace file when it gets too big?

I'm using .NET's built-in Tracing mechanism to trace program execution. The problem is the trace file can grow to several MB very quickly. Is there an efficient way of truncating the file when it grows past a certain point? I thought of putting in a check whenever something gets written (I have a custom class that inherits from TraceL...

Code-Level Tracing in VB.NET

How do I define the Trace Constant for a Web Site in VB.NET to enable trace output? I know where it is for web applications, but I cannot find it for web sites. ...

How to log user operations in a web application?

Hi. The environment of my application: web-based, Spring MVC+Security, Hibernate, MySQL(InnoDB) I am working on a small database application operated from a web interface. There are specific and known users that handle the stored data. Now I need to keep track of every create/update/delete action a user executes on the database and pro...

Performance tracing in c#

Hi, I would like to trace performance inside a c# mobile application, in order to know the amount of time needed by some long-running methods. The goal is to know the performance at the level of methods. This tracing would be decided at runtime. First idea that came is to maintain a global variable "doWeHaveToTrace", to check it each t...

Can I trace all the functions/methods executing in a python script?

Is there a way to programmatically trace the execution of all python functions/methods? I would like to see what arguments each of them was called with. I really mean all, I'm not interested in a trace decorator. In Ruby, I could alias the method I wanted and add the extra behaviour there. ...

Converting Pixels to Bezier Curves in Actionscript 3

Ok, so I'll try to be as descriptive as possible. I'm working on a project for a client that requires a jibjab-style masking feature of an uploaded image. I would like to be able to generate a database-storable object that contains anchor/control positions of a bezier shape, so I can pull it out later and re-mask the object. This all i...

Object Disposed Exception when using .Net Trace Source within VS UNit Tests

I'm getting an Object Disposed Exception when I try to call TraceSource.TraceData with my VS2008 unit test project. I have included a very small code sample below which consistently repros the issue. I'm only seeing this after I run my first unit test - but I have a hunch it'll affect me once my website is up and running with lots of u...

At what stage do you add logging & tracing in OO?

I'm interested at what stage in your development do add logging and/or tracing to your applications? I'm working with a .Net stack and log4net (via commons.logging). Generally taking a TDD approach to development although admittedly not 100%, sometimes Im know to spike out without test coverage. My application all sit server-side, e.g. ...

What is the .Net tracing facility? where can I start reading about it?

Can I use tracing instead of my manual logging mechanism? Please recommend good references and advices. ...

ASP.NET/WCF tracing does not work within Sharepoint

I configured message tracing for my WCF webservice like this: <!--TRACING --> <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing" propagateActivity="true"> <listeners> <add name="xml" /> </listeners> </source> <source name="System.S...

WCF trace file keeps getting corrupted?

I enabled message tracing on a WCF service. it traces a couple of messages and then it stops, when I try to open the trace in TraceViwer it gives me an error on the last message that got logged, or doesn't even open the file duo to different error everytime. I can't even delete the corrupt file unless i run a resetiis since the file is ...

Is any one aware of windows event to trap the mouse and keyboard input

I want to trap windows mouse and keyboard input with the help of event given by windows for detecting system idle or not in C++. Two things I have tried: 1. Hooking concept, but as antivirus might not allow it and also CPU usage increases if we use hooking. 2. GetLastInputInfo() which also eats CPU usage about 50 % Anyone can tell me i...

Is there a tool that enables me to insert one line of code into all functions and methods in a C++-source file?

It should turn this int Yada (int yada) { return yada; } into this int Yada (int yada) { SOME_HEIDEGGER_QUOTE; return yada; } but for all (or at least a big bunch of) syntactically legal C/C++ - function and method constructs. Maybe you've heard of some Perl library that will allow me to perform these kinds of operations...

ASP.NET MVC, HandleError Attribute, and Tracing: Bug?

I seem to be encountering some funky behaviour when tracing is enabled in an ASP.NET MVC application: Whenever tracing is enabled, the HandleError attribute fails. I've reproduced this on the vanilla ASP.NET MVC app, and was wondering whether anyone has experienced anything similar. Steps to Reproduce Step 1 Create a new ASP.NET MVC...

Algorithm to "trace" sequential points into bezier curves

I have a sequential collection of points in X,Y and I'd like to "trace" these into a set of bezier curves. Could any open source bitmap to vector tracing algorithm or library be used for this? ...

(.net) Logging the function logic of my program

Hello. I'd like for debugging purposes to be able to log what functions are called and in what order. So I've been just putting Debug.WriteLine("myFunctionName(args)") all over my functions, logging it in the end to a file. Isn't there a better approach to do this? I'd hope so. ...

How to make sense of WCF traces

I know how to enable WCF tracing and view them in the trace viewer tool, but I don't understand what it all means. is there documentation somewhere that explains what each of those levels means and how to make scene of all the information that is being logged. also what is a good source to learn about a WCF request/response life cycle. ...

How to implement tracing in .net

Hello. I am implementing a tracing mechanism myself. Now what I'd like to know is what is the best way to implement this mechanism(I mean, the architecture). First I thought of creating a class like this: class Tracer { public void NewEventRegistered(etc) {...} //this is the method I use to send this class the events I want to regis...

ASP.Net excessive use of User Controls

Hi, I'm investigating an asp.net web application that extensively uses User Controls on each page. Most pages contain around 10-20 user controls. The User controls seem to be the visual representation of the business objects (if that makes sense), although at a finer granularity such as each tab of a tab control having its contents in a...