The following example shows how to integrate the Dashboard Diagnostic Tool's functionality in the Dashboard Designer to allow users to inspect the dashboard's performance.
The Inspect button is inserted into the custom Ribbon's Performance Diagnostics page group. The button click starts a new diagnostic session. The Dashboard Diagnostic Tool monitors user actions to collects actions for each event of the event session. When you uncheck the button, the session ends and the resulting report is automatically saved to the XML file. You can open the report in the Diagnostic Tool UI.
-
Download the Dashboard Diagnostic Tool.
-
Reference
DiagnosticTool.dlland install the Microsoft.Diagnostics.Tracing.TraceEvent package in your dashboard project. -
Create a custom button and insert it in the Ribbon.
-
Create a
DiagnosticControllerobject. -
Call the controller's Start() and Stop() methods on a button click to run and finish the Dashboard Diagnostic Tool's session.
-
Implement the
IFileControllerinterface and specify the output file path in theTrySaveFilemethod. Pass a new class instance that implementsIFileControllerin the controller's constructor. -
To save the resulting report to the specified output path, call the controller's
Save()method.
(you will be redirected to DevExpress.com to submit your response)
