Hello,

VS 2008 Development Edition.

I have 2 functions that do the same thing but using a different technique. I want to test the performance of these functions to see which one is more efficient and performs faster.

However, when I use the performance wizard I can never see my functions being analyzed.

Code:
private void Function1()
{
string callStatus = "<sip:[email protected]:5060>";
string result = Regex.Match(callStatus, "(?<=\\<sip:)[a-z]+(?=@)").ToString();
}

private void Function2()
{
string callStatus = "<sip:[email protected]:5060>"; 
string usernameAndIP = callStatus.Remove(0, 5);
string[] username = usernameAndIP.Split('@');
string result = username[0].ToString(); 
}
I launch the performance wizard and select sampling.

I launch with profiling and I run my application. I then click stop the profiling and review the report.

On the summary I have "functions doing most work", and "functions causing most work". However, I don't see my functions 1 and 2 listed.

I use the drop down list box and select functions, my functions are still not there.

However, I look at the code metrics then I can see my functions, and can review information like maintainablity, lines of code, etc.

I would like to test this functions for speed and efficiency, and not sure what it the best way to do that?

Also, I thought Development edition was surpossed to give analysis on code that is not very efficient and give information on how to modify to make it more efficient? I guess I am just new at doing this profiling technique.

Many thanks for any information that can help me solve my above problems,