tohojo/flent

Obtaining socket stats for all other tests

hrishikeshathalye opened this issue · 3 comments

Can the code be changed in some way to obtain socket stats for tests other than tcp1up using the same SsRunner?
All the other runners inherit from ProcessRunner, so my guess is adding the code to detect the SOCKET_STATS option there will be the way to do it?
Something similar to the below lines of code in NetperfdemoRunner, but that can work for tests other than TCP_STREAM?


if args['test'] == 'TCP_STREAM' and self.settings.SOCKET_STATS:
  self.add_child(SsRunner,
                 exclude_ports=(args['control_port'],),
                 delay=self.delay,
                 remote_host=None,
                 host=self.remote_host or 'localhost',
                 interval=args['interval'],
                 length=self.length,
                 target=self.host,
                 ip_version=args['ip_version'])

I am trying to obtain stats for http-1up with a single worker and would like to have the stats for the underlying TCP socket that it uses