VScope: Flexible Middleware for Distributed System Analytics