How to enable Application Timeline in visual studio 2017 C++ project? - performance

I would like to analyze my C++ program in order to find out which function is taking a lot of time.
I wanted to use the Application Timeline in VS 2017 (professional) Performance Profiler, but it seems to be disabled.
How can I enable it? or perhaps there's another suggested tool?
Thanks

Related

Query on support for profiling native unmanaged C++ code in Visual Studio 2012 & 2013

I've installed Visual Studio 2012 & 2013 Professional for evaluation with all the latest updates with a view to purchasing a licence if all goes well...
I'm interested in profiling and instrumenting native unmanaged C++ code, but am running into difficulties.
I can get Sampling-based performance profiling for native C++ code working OK in the IDE for VS2012 but not for VS2013.
I can't get Instrumentation-based performance profiling working for native C++ in the IDE in either of VS2012 or VS2013.
The C++ code is being called from C# GUI. The C# and managed C++ calls are getting profiled, but not the unmanged C++ code.
Is this possible to achieve, either via the IDE or else through the command line?
The Visual Studio documentation is pretty poor in this area.
Does anyone have any good web links as to how to get this all setup?
Are any of these features only available in the Premium or other higher editions?
Resolved it.
In the end it turned out to be it was instrumenting the native DLL but then loading a different uninstrumented version of it into the process.
All working fine now across both VS versions.

What can I do with code analysis upgrading from Visual Studio 2010 to Visual Studio 2012?

I am upgrading a big solution from Visual Studio 2010 to Visual Studio 2012. All is done, but the code analysis module was changed in Visual Studio 2012 so I got thousands of CODE analysis errors (many CA1703, CA1709, etc.) What can I do?
It is very hard to manage every manually.
These are not errors. They are just warnings.
You can just turn off code analysis
How to: Enable and Disable Automatic Code Analysis for Managed Code at MSDN
or reconfigure Code Analysis
How to: Configure Code Analysis for a Managed Code Project at MSDN
VS2012 is not so diffrent that you may think. It's just diffrently configured by default.
I am not sure there is a perfect answer for that but the code analysis in VS2012 is much better than in VS2010. There are many improvements in VS2012 and I believe there isn't any one shot solution to this problem. You may have to look into every error case by case.

Using Visual Studio (Isolated Shell?) to program ARM device

I want to use Visual Studio (maybe Isolated Shell) to create a custom IDE for programming a custom ARM-based device in C. The device has no OS and is being used like a microcontroller.
Atmel's AVR Studio 5 uses the Visual Studio 2010 Isolated Shell and I would like to do something similar. I am currently using a gcc-based ARM compiler.
I've already been through MSDN's documentation for extending Visual Studio, but I can't find anything specific to this task. Can someone give me an idea of how to approach this? For example, is there some way for me to leverage the Visual C++ editor without having to use Babel to re-teach Visual Studio about C?
MSDN documentation is not enough if you want to create a new IDE in fact. My personal suggestion is that you learn from existing large samples, such as this Python IDE,
http://pytools.codeplex.com/
It is designed by Microsoft, so it provides much useful information that does not appear in MSDN.
However, reusing Visual C++ editor means you cannot use only Visual Studio 2010 Isolated Shell (I think), as that may require some assemblies that only full Visual Studio has.

difference between visual studio 2008 and visual studio 2010

I want to know what is the main difference between vs2008 and vs2010..
means I want to know what is the new functionality added in vs2010.
Well, there's always Microsoft's page about the new features of VS 2010. But you can get a more distilled user perspective describing new features that specific developers really like. There are a number of blog posts about it as well.
If you plan to code a lot with threads, definitely go with 2010. It has great advancements on the profiler and debugger. The profiler especially it's awesome.

Is there an alternative to Microsoft Code Contracts static analysis?

I am very impressed with the Microsoft Code Contracts.
Unfortunately the static analysis is only available in Visual Studio 2008 Team System and Visual Studio 2010 Premium.
We are happily using Visual Studio 2008 Professional (without MSDN). Upgrading our Visual Studio license from pro to premium is way to expensive.
Is there a good alternative?
Take a look at the MSDN Ultimate Offer for Devs. It's not cheap, but it's a lot less expensive than 2008 Team Suite. Then you can use Visual Studio 2010 from now on with Code Contracts. :)
Also, Code Contracts is different from FxCop, where the latter is what everyone is going to think you're talking about when you say "static code analysis."
I personally use the following tools to help with my code analysis needs:
CodeIt.Right can be used as an analysis tool.
FxCop quite extensive and thorough and also free
CAT tool 1.1 is a simple tool to help identify security flaws in managed code.
Concerning code contracts, take a look at DevLabs portal and click on the "Projects" link to link you to the Code Contracts project available for Visual Studio 2008 and Visual Studio 2010
The compiler that comes with the platform SDK has static analysis for free.
cl /analyze. You can configure your IDE to use it.

Resources