Add check to prevent attaching a profiler when one is already present (#25520)
authorDavid Mason <davmason@microsoft.com>
Thu, 4 Jul 2019 00:15:47 +0000 (17:15 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Jul 2019 00:15:47 +0000 (17:15 -0700)
commit1893a9c21d21a860094155b330efca9e598581d0
treeabfc74c11159a0b53c532288590c86685ca3c389
parent16b6f2c9c2196bfc32020dcd12cda4c4f34279df
Add check to prevent attaching a profiler when one is already present (#25520)

* Don't load multiple profilers

* add comment

* Move check to LoadProfiler, and eliminate race condition between attach profiler and startup profiled
src/inc/profilepriv.h
src/vm/profilerdiagnosticprotocolhelper.cpp
src/vm/profilinghelper.cpp
src/vm/profilinghelper.h