OutSystems Forge 日本語データベース

Performance Profiler

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2014-06-12 1 Conigent 8.0.1+ All .NET
パフォーマンスプロファイラを使用すると、アクションのパフォーマンス詳細を取得し、パフォーマンスの向上が必要な正確な場所を見つけることができます。
機能 パフォーマンスを細かく正確に把握できます。 .NET Stopwatchオブジェクトを使用して、正確な時間を取得します。 DateTime.Now()  OutSystemsのCurrDateTime() 主な利点 時間を浪費するのではなく、パフォーマンスが低下した正確な原因を理解しパフォーマンスの修正を行う方がずっと簡単です。 使い方 GetNewProfileLogを呼び出し、出力にローカル変数を設定します。 アクション内の各ステップの初めに、ステップの詳細を渡してProfile関数を呼び出し、「IsStart」に「True」、IsEndに「False」を渡します。この関数の出力にローカル変数を設定します。 ステップに複数のサブステップがある場合は、IsStartとIsEndの両方を含むProfileを「False」に設定してステップ内のタイムスタンプを取得するか、IsStart = Trueで呼び出して、サブレベルのパフォーマンスを得ることができます。 「IsStart」を必要なだけ深く入れ子にすることができます。ローカル変数を出力に設定します。 ステップの最後に、IsStart = False、IsEnd = Trueのプロファイルを呼び出します。ローカル変数を出力に設定します。 アクション自体の終わりに、RecordProfileLogを呼び出し、ローカル変数eSpaceId(私はGetOwnerEspaceIdentifier()を使用します)と、オプションでTenantIdとUserIdを渡します。また、スクリーン名とActionName、およびあなたが望む他の詳細を渡します。 パブリッシュして実行! アプリケーションは、記録されたプロファイルログのリストを表示します。クリックすると詳細が表示されます。詳細を見ると、プロファイリングした個々のステップとサブステップの、きれいにフォーマットされたネストされたビューが表示されます。表示される数値は、前回のエントリからのミリ秒数です。

[Overview]
Performance Profiler allows you to capture in-depth details of the performance of an Action, letting you find the exact places that need performance improvements.
[Detail]
Feature List Allows precise, granular insight into performance. Uses the .NET Stopwatch object to get high resolution ticks instead of the imprecise DateTime.Now() or OutSystems' CurrDateTime(). Main Benefits It is much easier to make performance fixes when you know the exact causes of poor performance instead of wasting time guessing! How To Use Make a call to GetNewProfileLog and set a local variable to the output. At the beginning of each step within the Action, call the Profile function, passing in a description of the step and "True" for "IsStart" and "False" for "IsEnd". Set the local variable to the output of this function. If a step has multiple sub-steps, you can call Profile with both IsStart and IsEnd to "False" to get a timestamp within the step, or you can call it with IsStart = True to get a sub-level of performance. You may nest "IsStart" as deep as you need to. Set the local variable to the output. At the end of the step, call Profile with IsStart = False and IsEnd = True. Set the local variable to the output. At the end of the Action itself, call RecordProfileLog and pass in the local variable, eSpaceId (I use GetOwnerEspaceIdentifier()), and optionally the TenantId and UserId. Also pass in a screen name and an ActionName, and any other details you wish. Publish and run! The application (it uses the Users eSpace for authentication, feel free to change it!) will show a list of recorded profile logs. You can click on it to get details. Looking at the details will show you a nicely formatted, nested view of the individual steps and sub-steps that you profiled. The number displayed is the number of milliseconds since the previous entry.
戻る