Probe for profiling distributed systems