Description[tracing] Add separate dump provider for sql connection
The sql connection memory dump is not thread safe since the connections
can get deleted while a dump is happening. To make this thread safe,
this CL introduces a dump provider class owned by the connection. This
class holds a lock when dumping and deleting the database. Also, to
workaround thread safe dump provider registration, it uses the
UnregisterAndDeleteDumpProviderAsync api added in crrev.com/1430073002.
BUG=466141
Committed: https://crrev.com/3be5b1ecdf66f6eaaa0ba98f9b36cc2d93bf54d9
Cr-Commit-Position: refs/heads/master@{#369161}
Patch Set 1 #Patch Set 2 : Nit. #Patch Set 3 : Rebase. #
Total comments: 16
Patch Set 4 : Fixes. #
Total comments: 4
Messages
Total messages: 32 (16 generated)
|