views:

19

answers:

0

I am profiling my code using instrumentation, but it takes a lot of time : About 6-7 minutes to run and then further 10-20 minutes to analyse.
One of the major bottlenecks in performance is SQlBulkCopy and I wish to optimize the parameters I use for it. The data I run it on can't be generated easily and I wish to test it only in real environment. How can I profile only a selected function in my code?

PS : I'm using VS 2008, but I do have access to VS 2010.