do not collect profile information if profiling is off (avoid memory exhaustion)
Merge commit 'github/testing' into beta