MCPcopy Create free account
hub / github.com/apache/thrift / ServiceMethod

Method ServiceMethod

contrib/fb303/cpp/ServiceTracker.cpp:428–443  ·  view source on GitHub ↗

* Creates a ServiceMethod, used for tracking a single service method * invocation (via the ServiceTracker). The passed name of the * ServiceMethod is used to group statistics (e.g. counts and durations) * for similar invocations; the passed signature is used to uniquely * identify the particular invocation in the log. * * note: A version of this constructor is provided that automatically *

Source from the content-addressed store, hash-verified

426 * invocation (usually name plus parameters).
427 */
428ServiceMethod::ServiceMethod(ServiceTracker *tracker,
429 const string &name,
430 const string &signature,
431 bool featureLogOnly)
432 : tracker_(tracker), name_(name), signature_(signature),
433 featureLogOnly_(featureLogOnly)
434{
435 // note: timer_ automatically starts at construction.
436
437 // invoke tracker to start service
438 // note: Might throw. If it throws, then this object's destructor
439 // won't be called, which is according to plan: finishService() is
440 // only supposed to be matched to startService() if startService()
441 // returns without error.
442 tracker_->startService(*this);
443}
444
445ServiceMethod::ServiceMethod(ServiceTracker *tracker,
446 const string &name,

Callers

nothing calls this directly

Calls 2

startServiceMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected