def collect_swap_usage(self):
        stats = psutil.swap_memory()
        for k, v in stats._asdict().iteritems():
            self.registry.gauge("swap.%s" % k).set_value(v)
dataset/ETHPy150Open omergertel/pyformance/example_sysmetrics.py/Collector.collect_swap_usage/original