grpc_session_info_get_np - Get session information.
grpc_error_t grpc_session_info_get_np(grpc_sessionid_t session_id,
grpc_session_info_t_np **info,
int *status)
grpc_sessionid_t session_id grpc_session_info_t_np **info int *status
/**
* Session Infomation
*/
/* Measured by the remote method */
typedef struct grpc_exec_info_executable_s_np {
int callbackNtimesCalled;
/* The time concerning argument transmission */
struct timeval transferArgumentToRemoteRealTime;
struct timeval transferArgumentToRemoteCpuTime;
/* The time concerning transfer file from client to remote */
struct timeval transferFileToRemoteRealTime;
struct timeval transferFileToRemoteCpuTime;
/* The time of Calculation time of executable */
struct timeval calculationRealTime;
struct timeval calculationCpuTime;
/* The time concerning transmitting a result */
struct timeval transferResultToClientRealTime;
struct timeval transferResultToClientCpuTime;
/* The time concerning transfer file from client to remote */
struct timeval transferFileToClientRealTime;
struct timeval transferFileToClientCpuTime;
/* The time concerning argument transmission of callback */
struct timeval callbackTransferArgumentToClientRealTime;
struct timeval callbackTransferArgumentToClientCpuTime;
/* The time concerning callback */
struct timeval callbackCalculationRealTime;
struct timeval callbackCalculationCpuTime;
/* The time concerning transmitting a result of callback */
struct timeval callbackTransferResultToRemoteRealTime;
struct timeval callbackTransferResultToRemoteCpuTime;
} grpc_exec_info_executable_t_np;
/* Measured by the client */
typedef struct grpc_exec_info_client_s_np {
int callbackNtimesCalled;
/* The time concerning request remote machine information */
struct timeval remoteMachineInfoRequestRealTime;
struct timeval remoteMachineInfoRequestCpuTime;
/* The time concerning request remote class information */
struct timeval remoteClassInfoRequestRealTime;
struct timeval remoteClassInfoRequestCpuTime;
/* The time concerning invoke GRAM */
struct timeval gramInvokeRealTime;
struct timeval gramInvokeCpuTime;
/* The time concerning argument transmission */
struct timeval transferArgumentToRemoteRealTime;
struct timeval transferArgumentToRemoteCpuTime;
/* The Calculation time of client */
struct timeval calculationRealTime;
struct timeval calculationCpuTime;
/* The time concerning transmitting a result */
struct timeval transferResultToClientRealTime;
struct timeval transferResultToClientCpuTime;
/* The time concerning argument transmission of callback */
struct timeval callbackTransferArgumentToClientRealTime;
struct timeval callbackTransferArgumentToClientCpuTime;
/* The time concerning calculation of callback */
struct timeval callbackCalculationRealTime;
struct timeval callbackCalculationCpuTime;
/* The time concerning transmitting a result of callback */
struct timeval callbackTransferResultToRemoteRealTime;
struct timeval callbackTransferResultToRemoteCpuTime;
} grpc_exec_info_client_t_np;
/* Compression Information */
typedef struct grpc_compression_info_s_np {
int valid; /* data below valid? 0:invalid, 1:valid */
/* Number of bytes of data before compression */
size_t originalNbytes;
/* Number of bytes of data after compression */
size_t compressionNbytes;
/* Lapsed time at the time of compression */
struct timeval compressionRealTime;
struct timeval compressionCpuTime;
/* Lapsed time at the time of decompression */
struct timeval decompressionRealTime;
struct timeval decompressionCpuTime;
} grpc_compression_info_t_np;
/* Session Information */
typedef struct grpc_session_info_s_np {
grpc_exec_info_executable_t_np gei_measureExecutable;
grpc_exec_info_client_t_np gei_measureClient;
struct {
/* Number of elements as toRemote and toClient */
int nElements;
grpc_compression_info_t_np *toRemote;
grpc_compression_info_t_np *toClient;
} gei_compressionInformation;
} grpc_session_info_t_np;
This function is MT-safe.
GRPC_NOT_INITIALIZED GRPC_INVALID_SESSION_ID GRPC_OTHER_ERROR_CODE