Chapter 4. Distributed Services Flow (DSF) Analysis

The Distributed Services Flow Analysis provides analysis tools to validate and/or debug your application execution.

4.1. Distributed Services Flow Analysis Overview

This plugin for IC2D provides distributed services flows analysis for ProActive applications with graphical display such as a communication graph of the services or a sequence diagram of a flow. That allows users or developers to understand and validate how a ProActive application has been executed.

Screenshot

Screenshot of the main view of this plugin on the right, and the monitoring view on the left.

Figure 4.1. Screenshot


4.2. How to analyse your application

In order to analyse your application with this DSF Plugin in IC2D, you have to execute your application with the PAProperty proactive.tag.dsf set to true. Next the only thing left is to monitor your application like you do usually in IC2D Monitoring.

4.3. Graph of communications services

Once you have started to monitor your application in IC2D, you can display the Distributed Service Flow view from the windows menu.

You have now acces to the following actions:

  • Refresh the graph: Refreshes the graph part of the view to display the informations got from the monitoring. This action provides three ways of displaying the graph:

    • Merged: All the DSF are displayed as one merged graph.

    • Separately: All DSG are displayed separately. This can take a while and not be efficient.

    • Filtered: You can set filter to choose which DSF you want to display. You can set filters for actives objects, methods called and DSF value.

  • Take a snapshot: Exports the current graph part toward a PNG file.

  • Import / Export: Imports or Exports the data gotten from the monitoring.

  • Replay a DSF: You can choose to replay step by step a DSF.

  • Automatic Replay: Automatically displays all next steps in the replay with a little delay between each step.

  • Next communication in the replay: Displays the next step of the replay.

  • Generate a Sequence Diagram: Genereates a Sequence Diagram in SVG Format for the DSF you will choose.

  • Clear all: Clears all data and resets the view.

Graph View Exemple

Example of the Communication graph, and the information displayed when you click on a connection between two nodes.

Figure 4.2. Graph View Exemple


4.4. Sequence Diagram of a DSF

If you choose to display a sequence diagram for a DSF, you will generate a SVG File representing it. There is a possibilty that there are some missing message from the monitoring, so the communication impacted by these losses are rendered in a different color. Black if no loss, orange if there are less than 25% of loss, and in Red if there are more of 50% of loss.

Sequence Diagram Exemple

Example of a Sequence Diagram.

Figure 4.3. Sequence Diagram Exemple