Back to Devexpress

Profile Your Application

xpoprofiler-10660-profile-your-application.md

latest3.3 KB
Original Source

Profile Your Application

  • Feb 19, 2023
  • 5 minutes to read

After you have set up the profiler, you are ready to profile your application.

To start a profiling session for a running application, click the Start icon in the toolbar.

The profiler will start logging application activity. The session selector on the left side of the profiler connection window allows you to switch between viewing events for separate sessions, and the entire profiler log.

The main grid view displays the actual event log corresponding to the selected session on the right.

The main grid view is represented by the Data Grid control, which is highly customizable. To simplify the profiling process, you can reorder columns, create summaries, use custom filters, etc. (If you are not familiar with the capabilities of the XtraGrid control, refer to the End-User Capabilities help topic from the XtraGrid documentation.) You can also customize the grid view via profiler toolbar commands. The Expand View / Collapse View commands expand/collapse all parameter lists in the grid view. These commands are available only when Message Log is selected in the session selector. The Short Text command enables a short text mode. In this mode, long SQL queries are truncated when displayed in the grid view. You can still see a complete SQL query in the accompanying details view. This view is displayed under the main grid view, and displays event parameters of the currently selected event.

When the profiler collects enough information on the activity of the running application, you will be able to identify the following issues.

  • Attempts to access a session from different threads

  • Attempts to execute requests via inappropriate data layers

  • Incorrect usage of the query cache (DataCacheRoot / DataCacheNode)

  • Inefficient implementations of methods manipulating database data

When you have gathered enough information and wish to finish profiling, stop the profiling session by clicking the Stop icon in the toolbar.

To save the collected profiler logs and analyze them later, use the Save Log , Open Log and Export Log commands.

The profiler automatically saves grid layout customizations for each connection individually. To manage the configurations, invoke the Options menu that contains layout management commands.

  • Default Layout

  • Custom Layout

  • Manage Layouts…

See Also

A Console XPO Profiler