RequestContext changes to facilitate thread tracing
authorMelanie Subbiah <melaniesubbiah@fb.com>
Fri, 22 Jul 2016 22:01:39 +0000 (15:01 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Fri, 22 Jul 2016 22:08:27 +0000 (15:08 -0700)
commit6645b95d6402b48e7b3abdc01146a7a61a9378c9
tree9a5622985d7cfd1a7876ce501f1470e5abb39bd3
parent066a868c73e9985f5c2ab3d5a7cc84159b6e3692
RequestContext changes to facilitate thread tracing

Summary: In order to trigger trace points when a new thread begins/finishes executing, I added functionality to call onSet and onUnset methods on all RequestData objects whenever setContext is called. The main question: will this approach cost us too much overhead?

Reviewed By: djwatson

Differential Revision: D3604948

fbshipit-source-id: 3b704ca0f2b713458427aa49be12f776939057f8
folly/io/async/Request.h