grpc_get_info_np
- Returns session information.
grpc_error_t grpc_get_info_np(grpc_sessionid_t session_id,
grpc_exec_info_t_np *info,
int *status)
grpc_sessionid_t session_id
grpc_exec_info_t_np *info
int *status
Not recommend. Use grpc_session_info_get_np() instead. The grpc_get_info_np() function returns information on the specified session. If NULL is specified in info, only the session status is returned as the return value. grpc_exec_info_t_np is defined in $NG_DIR/include/grpc.h. The time of compression is included in members of grpc_exec_info_t_np listed following.
typedef struct grpc_exec_info_s_np { struct { /* Measured by the remote method */ /* Real time of the time concerning argument transmission */ struct timeval transferArgumentRealTime; /* CPU time of the time concerning argument transmission */ struct timeval transferArgumentCpuTime; /* Real time of Calculation time of executable */ struct timeval calculationRealTime; /* CPU time of Calculation time of executable */ struct timeval calculationCpuTime; /* Real time of the time concerning transmitting a result */ struct timeval transferResultRealTime; /* CPU time of the time concerning transmitting a result */ struct timeval transferResultCpuTime; /* Real time of the time concerning argument transmission of callback */ struct timeval callbackTransferArgumentRealTime; /* CPU time of the time concerning argument transmission of callback */ struct timeval callbackTransferArgumentCpuTime; /* Real time of time concerning callback */ struct timeval callbackCalculationRealTime; /* CPU time of time concerning callback */ struct timeval callbackCalculationCpuTime; /* Real time of the time concerning transmitting a result of callback */ struct timeval callbackTransferResultRealTime; /* CPU time of the time concerning transmitting a result of callback */ struct timeval callbackTransferResultCpuTime; } gei_measureExecutable; struct { /* Measured by the client */ /* Real time of the time concerning request remote machine information */ struct timeval remoteMachineInfoRequestRealTime; /* CPU time of the time concerning request remote machine information */ struct timeval remoteMachineInfoRequestCpuTime; /* Real time of the time concerning request remote class information */ struct timeval remoteClassInfoRequestRealTime; /* CPU time of the time concerning request remote class information */ struct timeval remoteClassInfoRequestCpuTime; /* Real time of the time concerning invoke GRAM */ struct timeval gramInvokeRealTime; /* CPU time of the time concerning invoke GRAM */ struct timeval gramInvokeCpuTime; /* Real time of the time concerning argument transmission */ struct timeval transferArgumentRealTime; /* CPU time of the time concerning argument transmission */ struct timeval transferArgumentCpuTime; /* Real time of Calculation time of client */ struct timeval calculationRealTime; /* CPU time of Calculation time of client */ struct timeval calculationCpuTime; /* Real time of the time concerning transmitting a result */ struct timeval transferResultRealTime; /* CPU time of the time concerning transmitting a result */ struct timeval transferResultCpuTime; /* Real time of the time concerning argument transmission of callback */ struct timeval callbackTransferArgumentRealTime; /* CPU time of the time concerning argument transmission of callback */ struct timeval callbackTransferArgumentCpuTime; /* Real time of time concerning calculation of callback */ struct timeval callbackCalculationRealTime; /* CPU time of time concerning calculation of callback */ struct timeval callbackCalculationCpuTime; /* Real time of the time concerning transmitting a result of callback */ struct timeval callbackTransferResultRealTime; /* CPU time of the time concerning transmitting a result of callback */ struct timeval callbackTransferResultCpuTime; } gei_measureClient; } grpc_exec_info_t_np;
Refer to the following for return status.
GRPC_SESSION_ARG_IS_NOT_TRANSMITTED
GRPC_SESSION_EXECUTING
GRPC_SESSION_DOWN
GRPC_SESSION_DONE
GRPC_SESSION_UNKNOWN_STATUS
This function is MT-safe.
If successful, GRPC_NO_ERROR is returned. In the case of an error, Error code is returned.
GRPC_NOT_INITIALIZED
GRPC_INVALID_SESSION_ID
GRPC_OTHER_ERROR_CODE