• Lee Howes's avatar
    Add logging for blocking using baton while on an executor · 55fc4b32
    Lee Howes authored
    Summary:
    Add sampled logging of blocking operations made on folly::Baton from within an executor task.
    
    Relies on thread_local state recording whether we are in a context where blocking is disallowed, which means within a task running on an executor with support for the functionality. Functionality is currently limited to certain executors, and to blocking operations on Baton, but this covers common user-facing APIs like Future.
    
    Reviewed By: andriigrynenko
    
    Differential Revision: D20010963
    
    fbshipit-source-id: c0598e1a3a9c4e3641581e561b678a2b241998ff
    55fc4b32
AsyncTraceTest.cpp 1.52 KB