thrift/lib
David Reiss 7a2065d3db cpp: Add profiling hooks to Mutex, ReadWriteMutex() classes
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
2010-03-09 05:20:04 +00:00
..
cocoa THRIFT-687. Fix memory leak in TSocketServer. 2010-02-10 01:03:01 +00:00
cpp cpp: Add profiling hooks to Mutex, ReadWriteMutex() classes 2010-03-09 05:20:04 +00:00
csharp THRIFT-622. Add appropriate licensing information to get Thrift ready for a release. 2009-12-07 00:42:38 +00:00
erl THRIFT-622. Add appropriate licensing information to get Thrift ready for a release. 2009-12-07 00:42:38 +00:00
hs THRIFT-560. haskell: Add THttpClient 2010-01-11 19:13:14 +00:00
java THRIFT-661. java: Detect EOF in TIOStreamTransport 2010-03-09 05:19:14 +00:00
js THRIFT-550: Added javascript support 2010-02-15 03:24:55 +00:00
ocaml THRIFT-387. Add appropriate Apache header to all code files 2009-04-08 00:19:37 +00:00
perl THRIFT-619: Perl server and example 2009-11-12 03:01:33 +00:00
php THRIFT-659. php: Make php_thrift_protocol handle std::exception cleanly 2010-03-09 05:19:20 +00:00
py THRIFT-475. python: Eliminate DeprecationWarning 2010-03-09 05:19:18 +00:00
rb THRIFT-720. rb: HTTPClientTransport ignores url parameters 2010-03-02 18:34:00 +00:00
st THRIFT-643. smalltalk: Generated code doesnt load on Squeak3.10.2-7179-basic and PharoCore-1.0-10491rc1 images 2010-01-19 05:18:55 +00:00
Makefile.am THRIFT-387. Add license headers to a bunch of files 2009-03-30 21:35:00 +00:00