collect runtime statics (experimental --stats flag)