mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 18:58:51 +00:00
7a2065d3db
Extend the Thrift C++ Concurrency library by allowing a user to register a callback and a sample rate for lock primitive contention profiling. The callback will be invoked approximately once every sampleRate calls to Mutex::lock(), Mutex::timedlock(), ReadWriteLock::acquireRead(), or ReadWriteLock::acquireWrite(). The callback receives a pointer to the mutex responsible and the time waited on the lock in micros (whether the lock was successfuly acquire or not). The user can then implement a registry of his choice to log/collect this data as needed. This can all be easily compiled out if it harms performance. By default, there is no profiling callback, so the overhead is minimal (one branch). git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920681 13f79535-47bb-0310-9956-ffa450edef68 |
||
---|---|---|
.. | ||
cocoa | ||
cpp | ||
csharp | ||
erl | ||
hs | ||
java | ||
js | ||
ocaml | ||
perl | ||
php | ||
py | ||
rb | ||
st | ||
Makefile.am |