DevPartner Profiler Community Edition

Visual Studio.NET アプリケーション用のプロファイラー(パフォーマンス分析ツール)。しかも、無料。

VS.NET 2002 対応版 日本語版(dpp07000j.exe) をダウンロードし、インストールしようとすると、

"C:\dpp07000j.exe" データが欠落しています

と表示されてしまう。何かファイルサイズ違うし。

しょうがないので VS.NET 2002 対応版 英語版(dpp70.exe) をインストール。インストール先は: Microsoft Visual Studio .NET\DevPartner Profiler あたり。ReadMe とかあるから読んでおいたほうが良い。

Visual C++ .NET で native プログラムの場合に、プロファイル結果が表示されない現象発生。プロファイルの snapshot を取ろうとすると、

The profiled process does not contain either instrumented native code or .NET managed code.

とダイアログが表示される。

ヘルプ(DevPartner Profiler Documentaion - Instrumentation) に、

You must explicitly instrument unmanaged (native) C++ modules before you can collect data with DevPartner Profiler. You instrument native Visual C++ 7.0 modules by selecting the solution that contains the module and setting the NativeOnly option under the Build with profiling property in the properties for the solution.

と書いてあるので、

ソリューションのプロパティ にある Build with profiling を NativeOnly に設定する。

native なので、リビルドが必要。ビルド時に

Neither /Zi nor /Z7 is specified, instrumentation is adding /Zi

とか

Compuware Linker Driver v7.0.0.2114

とか出力されればOK.

tags: VisualC++.NET zurazure

Posted by NI-Lab. (@nilab)