4 Replies Last post: Feb 1, 2012 1:26 PM by Dominique BOYER  
Dominique BOYER Newbie 11 posts since
Dec 7, 2011
Currently Being Moderated

Jan 27, 2012 1:21 PM

Best compilation and packaging option for profiling

Hi,

 

My packages are compiled with the following options :

- AnyCPU

- Release

- Optimize flag

 

And when packaging is done, all PDB are removed.

 

I can adapt those as I want, but I would like to know what are the best options to set before.

 

Also I would like to have an overview of which option can impact what.

 

For example:

- if I set Optimize mode, what does it change when profiling and profiling results ?

- if I compile using release, what does it change when profiling and profiling results ?

- ...

 

Thanks

Mikhail Pilin JetBrains 535 posts since
May 23, 2005
Currently Being Moderated
Jan 30, 2012 2:27 PM in response to: Dominique BOYER
Re: Best compilation and packaging option for profiling

Dear Dominique,

 

It's very hard to give an abstract advices. Could you tell me more about your application?

 

--
Mikhail Pilin
Senior Software Engineer
JetBrains GmbH
http://JetBrains.com
"Develop with pleasure!"

Mikhail Pilin JetBrains 535 posts since
May 23, 2005
Currently Being Moderated
Feb 1, 2012 12:56 PM in response to: Dominique BOYER
Re: Best compilation and packaging option for profiling

Dear Deminique,

 

Thank you for the details. Here my answers:

 

> - Is dotTrace able to profile an application if binaries are built using "Release" mode ?

Yes, it is.

 

> - Is dotTrace able to profile an application if binaries are built using Optimize flag ?

Yes, it is.

 

> - Is dotTrace able to profile an application if PDB are missing ?

Yes, except line-by-line profiling. PDB information is required to split IL functions into source code statements.

 

> - Will I get more detailed profiling results if I change a build option ?

It is incorrect question. You will get another results (another times, another count of calls, ...) if change build options. Debug application is much different then the release one. In fact they are different applications.

 

--
Mikhail Pilin
Senior Software Engineer
JetBrains GmbH
http://JetBrains.com
"Develop with pleasure!"

More Like This

  • Retrieving data ...