Understanding Analyzers and Metrics

24 views
Skip to first unread message

Philipp Giesen

unread,
Nov 14, 2013, 6:15:53 AM11/14/13
to peerfac...@googlegroups.com
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

Philipp Giesen

unread,
Nov 14, 2013, 6:27:52 AM11/14/13
to peerfac...@googlegroups.com
The easiest way seems to be writing my own metric and not implementing the resetPeerMeasurement and resetTimeMeasurement methods.

I will try this..

Matthias Feldotto

unread,
Nov 17, 2013, 1:58:29 PM11/17/13
to peerfac...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages