Library for collecting local and remote system performance statistics