/* state of the network LP. It contains the pointers to send/receive lists */
structnw_state
{
longnum_events_per_lp;
tw_lpidnw_id;
shortwrkld_end;
/* count of sends, receives, collectives and delays */
unsignedlongnum_sends;
unsignedlongnum_recvs;
unsignedlongnum_cols;
unsignedlongnum_delays;
unsignedlongnum_wait;
unsignedlongnum_waitall;
unsignedlongnum_waitsome;
unsignedlongnum_waitany;
/* time spent by the LP in executing the app trace*/
doubleelapsed_time;
/* time spent in compute operations */
doublecompute_time;
/* time spent in message send/isend */
doublesend_time;
/* time spent in message receive */
doublerecv_time;
/* time spent in wait operation */
doublewait_time;
/* time spent in collective operations*/
doublecol_time;
/* total time spent in operations */
doubletotal_time;
};
/* network event being sent. msg_type is the type of message being sent, found_match is the index of the list maintained for reverse computation, op is the MPI event to be executed/reversed */
printf("\n Total bytes sent %lld recvd %lld \n avg runtime %lf \n avg comm time %lf avg compute time %lf \n avg collective time %lf avg send time %lf \n avg recv time %lf \n avg wait time %lf \n total sends %ld total recvs %ld total waits %ld total collectives %ld ",total_bytes_sent,total_bytes_recvd,