library/src/os_profiling/BP_OSProfiling.cc
// Runs the sg_snapshot routine to generate a basic snapshot.
Runs the sg_snapshot routine to generate a basic snapshot.
Runs the sg_snapshot routine to generate a basic snapshot .
BP_ERROR_T BP_OSProfTakeSnapshot(P_BP_OS_PROFILING_SESSION osprof_session)
{
	if(!osprof_session)
		return ERR_FAILURE;
	BP_OSPROF_SESSION_LOCK;
	sg_snapshot();
	BP_OSPROF_SESSION_UNLOCK;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_OSProfTakeSnapshot ( P_BP_OS_PROFILING_SESSION osprof_session ) { if ( ! osprof_session ) return ERR_FAILURE ; BP_OSPROF_SESSION_LOCK ; sg_snapshot ( ) ; BP_OSPROF_SESSION_UNLOCK ; return ERR_SUCCESS ; }
Runs the sg_snapshot routine to generate a basic snapshot.
Runs the sg_snapshot routine to generate a basic snapshot .
// lock profiling session // run snapshot routine // unlock profiling session // return indicating success