Understanding Analyzers and Metrics

Home Forums PeerfactSim Forum Understanding Analyzers and Metrics

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #779
    Philipp Giesen
    Guest

    Hello,

    I’m not sure, if I did fully understand the different Metrics, that can be used in the Analyzers.

    Say, I want to count the messages, which were sent through my application. When using a CounterMetric within the Analyzer I wrote, the dat-file produced only shows the messages which were sent at a certain time. What if I want a simple accumulation of all messages sent through the network over time. The resulting graph should be monotonically increasing.

    Do I have to write my own metric to achieve this or am I using the available metrics incorrectly?

    Thanks and regards
    Philipp

    #780
    Philipp Giesen
    Guest

    The easiest way seems to be writing my own metric and not implementing the resetPeerMeasurement and resetTimeMeasurement methods.

    I will try this..

    #781
    Matthias Feldotto
    Guest

    Hi Philipp,

    the currently implemented metrics allows three different outputs of data:

    data which were measured at a certain time.
    data of the whole simulation grouped by peers
    data of the whole simulation grouped and sorted by peers

    If I understood you correctly, you want to get the cumulative data over time. This is not supported by the metrics at the moment and you have to implement your own (what should not be a big issues).

    Regards,
    Matthias

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed.