Skip to content

Instantly share code, notes, and snippets.

@myaut
myaut / bench.py
Created March 3, 2015 15:53
Python module that runs stat collectors (like iostat, mpstat) on background
import os, subprocess
import errno
import time
import shutil
import signal
from string import maketrans
from datetime import datetime
from threading import Thread