5

I developed an application that needs to be monitored. Our monitoring site manager wants my app generates some performance parameters through "windows performance monitor".

Then he can monitor them in windows and "ApplicationManger" product of "ManageEngine" company through WMI.

I am searching for Delphi implementation to register/create windows performance counter and set their values.

4

1 に答える 1

4

パフォーマンス カウンターの作成 (登録) と使用 は、非常に幅広いトピックです。これらの代替手段を使用して、ネイティブ コード(C++' または Delphi)からパフォーマンス カウンターを作成して、独自のアプリを作成できます。


パフォーマンス拡張 DLL の使用。


バージョン 2.0 (Windows Vista 以降) を使用したカウンター データの提供


IWbemHiPerfProvider インターフェイスを実装する COM サーバーを作成する WMI パフォーマンス プロバイダーを作成します。


パフォーマンス カウンターを作成するための Delphi サンプル プロジェクトを知りません。以前は、.Net と Delphi を使用して顧客向けのパフォーマンス カウンターを作成していましたが、残念ながらこのコードを共有することはできません。ただし、質問で WMI について言及されているため、パフォーマンス カウンターに関する MSDN ドキュメントを読むことをお勧めします。次に、この記事C++ を使用した WMI Hi-Perf プロバイダーの開発を確認し、最後に記事のコードを Delphi に変換します。特定の問題に戻って、新しい質問をすることができます。

于 2013-10-18T13:50:23.973 に答える