DevTools: Suspend a new target when TargetManager._isSuspended is true

When DevTools start recording the performance timeline, TargetManager suspends
the all targets. But if a new target is added by createTarget, currently the new
target is not suspended.

This is problematic while measuring the performance of PWAFullCodeCache, because
V8 doesn't generate code cache if debugger is attached to the newly started
service worker.

Bug: 768705
Change-Id: Ib54f89123ce96187fcbcc390ba2713c00465abbb
Commit-Queue: Tsuyoshi Horo <>
Reviewed-by: Dmitry Gozman <>
Reviewed-by: Tsuyoshi Horo <>
Cr-Commit-Position: refs/heads/master@{#518506}
10 files changed