• Marko Mäkelä's avatar
    MDEV-24167 fixup: Improve the PERFORMANCE_SCHEMA instrumentation · 1669c889
    Marko Mäkelä authored
    Let us try to avoid code bloat for the common case that
    performance_schema is disabled at runtime, and use
    ATTRIBUTE_NOINLINE member functions for instrumented latch acquisition.
    
    Also, let us distinguish lock waits from non-contended lock requests
    by using write_lock,read_lock for the requests that lead to waits,
    and try_write_lock,try_read_lock for the wait-free lock acquisitions.
    Actual 'try' operations are not being instrumented at all.
    1669c889
btr0sea.cc 59.3 KB