mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-08 16:19:05 +00:00
Add profile support: show function call time
This commit is contained in:
@@ -17,7 +17,18 @@ contains three fields:
|
||||
* **err_msg**: error message. This field is only set if the RPC function
|
||||
reports an error.
|
||||
|
||||
|
||||
Compile
|
||||
=======
|
||||
|
||||
Just
|
||||
|
||||
./autogen.sh; ./configure; make; make install
|
||||
|
||||
To enable profile, Use
|
||||
|
||||
CFLAGS="-DPROFILE" ./configure
|
||||
|
||||
When profile is enabled, the time spend in each rpc call will be printed.
|
||||
|
||||
Example
|
||||
=======
|
||||
|
Reference in New Issue
Block a user