library/src/os_profiling/BP_OSProfiling.cc
// generate user information about a system
generate user information about a system
generate user information about a system
BP_ERROR_T BP_OSProfGenUserStats(P_BP_OS_PROFILING_SESSION osprof_session)
{
	if(!osprof_session)
		return ERR_FAILURE;
	BP_OSPROF_SESSION_LOCK;
	osprof_session->users  = sg_get_user_stats(&osprof_session->users_n);
	BP_OSPROF_SESSION_UNLOCK;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_OSProfGenUserStats ( P_BP_OS_PROFILING_SESSION osprof_session ) { if ( ! osprof_session ) return ERR_FAILURE ; BP_OSPROF_SESSION_LOCK ; osprof_session -> users = sg_get_user_stats ( & osprof_session -> users_n ) ; BP_OSPROF_SESSION_UNLOCK ; return ERR_SUCCESS ; }
generate user information about a system
generate user information about a system
// lock session before display // get mem and swap stats // unlock // return indicating success