Optimally profiling and tracing programs | Synapse