Client-side tracing for performance analysis