More about F1 profiler ( shipped with VS 2005)

Angry Richard’s blog talks about some cool features of new F1 profiles. VSInstr has an option called include and exclude.  This allows you to instrument only certain functions inside your app.  It accepts wildcards so you can do things like instrument only a certain class or namespace!!!  This allows you to narrow down the data…


Profiling: Sampling doesn’t report my functions wait time.

Working on performance of VSSConverter. I am using the new F1 profiler being shipped with VS 2005. I have a simple code sample like this: using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace perf_test{class Program{static bool exit = false;static object lockObject = 3;static void Main(string[] args){Thread threadWait = new Thread(new ThreadStart(WaitMethod));Thread threadProcess = new Thread(new ThreadStart(ProcessMethod));threadWait.Start();threadProcess.Start();threadWait.Join();threadProcess.Join();}static void WaitMethod(){lock…


Settings File for VSSConverter

There is some problem with VSSConverter documentation at http://msdn2.microsoft.com/en-us/library/ms181247. It has some bogus <i> </i> inserted in all XML snippets. For details on how to migrate see Akash’s blog.   If you are just stuck on settings file you can use following settings file.<?xml version=”1.0″ encoding=”utf-8″ ?>  <SourceControlConverter> <ConverterSpecificSetting>            <Source name=”VSS”>                  <VSSDatabase name=”e:\myrepository”></VSSDatabase>                   < UserMap name=”e:\Migrate\Usermap.xml” />…

4

How to stop threads on threadpool when my windows service is being stopped?

I came accross a mail thread which deals with the problem i was facing some time back. Sharing it to you all. Problem: I have written a windows service in .Net that uses the ThreadPool.QueueUserWorkItem() call to do some processing. Each work item to the thread pool takes the same type of object to process…

1

Path.GetTempFileName()

In C# the class Path gives an easy way to get a temporary file for your application but you have to be careful using this API. This API create zero-byte temporary files in Windows temporary folder and when there are 65536 files it gives an IOException saying “The file exists.”. But if you need small number of temporary…

2

How does VSS Converter works?

VSS provides IVSS automation interface to program. This interface is used to retrieve the information from VSS repository. Converter reads the history from VSS repository and adds into an intermediate database (SQL). This history is processed to take care of ambiguities arising due to rename/share and to remove residual information about destroyed items. After the…

1