#include <LBDBManager.h>
Collaboration diagram for LBDB:

Definition at line 69 of file LBDBManager.h.
typedef CkVec<LBOM*> LBDB::OMList [private] |
Definition at line 238 of file LBDBManager.h.
typedef CkVec<LBObj*> LBDB::ObjList [private] |
Definition at line 239 of file LBDBManager.h.
typedef CkVec<MigrateCB*> LBDB::MigrateCBList [private] |
Definition at line 240 of file LBDBManager.h.
typedef CkVec<StartLBCB*> LBDB::StartLBCBList [private] |
Definition at line 241 of file LBDBManager.h.
| LBDB::~LBDB | ( | ) | [inline] |
Definition at line 72 of file LBDBManager.h.
| void LBDB::SetPeriod | ( | double | secs | ) | [inline] |
Definition at line 74 of file LBDBManager.h.
References batsync, and LBDB::batsyncer::setPeriod().
Referenced by LDSetLBPeriod().
| double LBDB::GetPeriod | ( | ) | [inline] |
Definition at line 75 of file LBDBManager.h.
References batsync, and LBDB::batsyncer::getPeriod().
Referenced by LDGetLBPeriod().
| void LBDB::insert | ( | LBOM * | om | ) |
| void LBDB::LocalBarrierOn | ( | void | ) | [inline] |
Definition at line 87 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOn().
Referenced by LDLocalBarrierOn().
| void LBDB::LocalBarrierOff | ( | void | ) | [inline] |
Definition at line 89 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOff().
Referenced by LDLocalBarrierOff().
| LBOM* LBDB::LbOM | ( | LDOMHandle | h | ) | [inline] |
Definition at line 92 of file LBDBManager.h.
References LDOMHandle::handle, and oms.
Referenced by LDOMUserData().
| LBObj* LBDB::LbObj | ( | const LDObjHandle & | h | ) | const [inline] |
Definition at line 94 of file LBDBManager.h.
References LDObjHandle::handle, and objs.
Referenced by LBDatabase::EstObjLoad(), LDAsyncMigrate(), LDCollectStatsOn(), LDMigratable(), LDNonMigratable(), LDObjectStart(), LDObjectStop(), LDObjTime(), LDObjUserData(), and LDQueryKnownObjLoad().
| void LBDB::TurnStatsOn | ( | void | ) | [inline] |
Definition at line 100 of file LBDBManager.h.
References CmiTrue, machineUtil, statsAreOn, and LBMachineUtil::StatsOn().
Referenced by LDCollectStatsOn().
| void LBDB::TurnStatsOff | ( | void | ) | [inline] |
Definition at line 102 of file LBDBManager.h.
References CmiFalse, machineUtil, statsAreOn, and LBMachineUtil::StatsOff().
Referenced by LDCollectStatsOff().
| CmiBool LBDB::StatsOn | ( | void | ) | const [inline] |
Definition at line 104 of file LBDBManager.h.
References statsAreOn.
Referenced by LDCollectingStats(), LDCollectStatsOn(), LDMulticastSend(), LDObjectStart(), LDObjectStop(), and LDSend().
| void LBDB::TurnPredictorOn | ( | void * | model | ) | [inline] |
Definition at line 108 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::on, and predictCBFn.
Referenced by LDTurnPredictorOn(), and LDTurnPredictorOnWin().
| void LBDB::TurnPredictorOn | ( | void * | model, | |
| int | wind | |||
| ) | [inline] |
Definition at line 112 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::onWin, and predictCBFn.
| void LBDB::TurnPredictorOff | ( | void | ) | [inline] |
Definition at line 116 of file LBDBManager.h.
References CmiPrintf(), LBDB::PredictCB::data, LBDB::PredictCB::off, and predictCBFn.
Referenced by LDTurnPredictorOff().
| void LBDB::ChangePredictor | ( | void * | model | ) | [inline] |
Definition at line 121 of file LBDBManager.h.
References LBDB::PredictCB::change, CmiPrintf(), LBDB::PredictCB::data, and predictCBFn.
Referenced by LDChangePredictor().
| int LBDB::CommDataCount | ( | ) | [inline] |
Definition at line 130 of file LBDBManager.h.
References LBCommTable::CommCount(), and commTable.
Referenced by LDGetCommDataSz().
| void LBDB::GetCommData | ( | LDCommData * | data | ) | [inline] |
Definition at line 135 of file LBDBManager.h.
References commTable, data, and LBCommTable::GetCommData().
Referenced by LDGetCommData().
| void LBDB::TurnOnNotifyMigrated | ( | int | handle | ) | [inline] |
| void LBDB::TurnOffNotifyMigrated | ( | int | handle | ) | [inline] |
| void LBDB::TurnManualLBOn | ( | ) | [inline] |
Definition at line 147 of file LBDBManager.h.
References CmiFalse, and useBarrier.
Referenced by LDTurnManualLBOn().
| void LBDB::TurnManualLBOff | ( | ) | [inline] |
Definition at line 149 of file LBDBManager.h.
References CmiTrue, and useBarrier.
Referenced by LDTurnManualLBOff().
| void LBDB::TurnOnStartLBFn | ( | int | handle | ) | [inline] |
| void LBDB::TurnOffStartLBFn | ( | int | handle | ) | [inline] |
| void LBDB::IdleTime | ( | double * | walltime | ) | [inline] |
Definition at line 160 of file LBDBManager.h.
References LBMachineUtil::IdleTime(), and machineUtil.
Referenced by BackgroundLoad(), GetTime(), and LDIdleTime().
| void LBDB::TotalTime | ( | double * | walltime, | |
| double * | cputime | |||
| ) | [inline] |
Definition at line 162 of file LBDBManager.h.
References machineUtil, and LBMachineUtil::TotalTime().
Referenced by BackgroundLoad(), GetTime(), and LDTotalTime().
| void LBDB::SetRunningObj | ( | const LDObjHandle & | _h | ) | [inline] |
runningObj records the obj handler index so that load balancer knows if an event(e.g.
Send) is in an entry function or not. An index is enough here because LDObjHandle can be retrieved from objs array. Copying LDObjHandle is expensive.
Definition at line 175 of file LBDBManager.h.
References CmiTrue, LDObjHandle::handle, obj_running, and runningObj.
Referenced by LDObjectStart().
| const LDObjHandle& LBDB::RunningObj | ( | ) | const [inline] |
Definition at line 177 of file LBDBManager.h.
References objs, and runningObj.
Referenced by LDCollectStatsOn(), LDObjectStart(), LDRunningObject(), MulticastSend(), LBDatabase::RunningObject(), and Send().
| void LBDB::NoRunningObj | ( | ) | [inline] |
Definition at line 179 of file LBDBManager.h.
References CmiFalse, and obj_running.
Referenced by LDObjectStop().
| CmiBool LBDB::ObjIsRunning | ( | ) | const [inline] |
Definition at line 181 of file LBDBManager.h.
References obj_running.
Referenced by LDCollectStatsOn(), LDObjectStart(), LDRunningObject(), and LBDatabase::RunningObject().
| LDBarrierClient LBDB::AddLocalBarrierClient | ( | LDResumeFn | fn, | |
| void * | data | |||
| ) | [inline] |
Definition at line 184 of file LBDBManager.h.
References LocalBarrier::AddClient(), and localBarrier.
Referenced by LBDB::batsyncer::init(), and LDAddLocalBarrierClient().
| void LBDB::RemoveLocalBarrierClient | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 186 of file LBDBManager.h.
References localBarrier, and LocalBarrier::RemoveClient().
Referenced by LDRemoveLocalBarrierClient().
| LDBarrierReceiver LBDB::AddLocalBarrierReceiver | ( | LDBarrierFn | fn, | |
| void * | data | |||
| ) | [inline] |
Definition at line 188 of file LBDBManager.h.
References LocalBarrier::AddReceiver(), and localBarrier.
Referenced by LDAddLocalBarrierReceiver().
| void LBDB::RemoveLocalBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 190 of file LBDBManager.h.
References localBarrier, and LocalBarrier::RemoveReceiver().
Referenced by LDRemoveLocalBarrierReceiver().
| void LBDB::TurnOnBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 192 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOnReceiver().
| void LBDB::TurnOffBarrierReceiver | ( | LDBarrierReceiver | h | ) | [inline] |
Definition at line 194 of file LBDBManager.h.
References localBarrier, and LocalBarrier::TurnOffReceiver().
| void LBDB::AtLocalBarrier | ( | LDBarrierClient | h | ) | [inline] |
Definition at line 196 of file LBDBManager.h.
References LocalBarrier::AtBarrier(), localBarrier, and useBarrier.
Referenced by LDAtLocalBarrier().
| void LBDB::ResumeClients | ( | void | ) | [inline] |
Definition at line 198 of file LBDBManager.h.
References localBarrier, and LocalBarrier::ResumeClients().
Referenced by LDResumeClients().
| void LBDB::MeasuredObjTime | ( | double | wtime, | |
| double | ctime | |||
| ) | [inline] |
Definition at line 200 of file LBDBManager.h.
References obj_cputime, obj_walltime, and statsAreOn.
Referenced by LBObj::IncrementTime().
LBCommTable* LBDB::commTable [private] |
Definition at line 243 of file LBDBManager.h.
Referenced by CommDataCount(), GetCommData(), LBDB(), MulticastSend(), Send(), and useMem().
Definition at line 244 of file LBDBManager.h.
Referenced by AddOM(), DoneRegisteringObjects(), LbOM(), Migrate(), RegisteringObjects(), and useMem().
int LBDB::omCount [private] |
int LBDB::oms_registering [private] |
Definition at line 246 of file LBDBManager.h.
Referenced by DoneRegisteringObjects(), LBDB(), and RegisteringObjects().
ObjList LBDB::objs [private] |
Definition at line 248 of file LBDBManager.h.
Referenced by AddObj(), ClearLoads(), GetObjData(), LbObj(), LbObjIdx(), Migrate(), ObjDataCount(), RunningObj(), and UnregisterObj().
int LBDB::objCount [private] |
Definition at line 249 of file LBDBManager.h.
Referenced by AddObj(), ClearLoads(), DumpDatabase(), LBDB(), Migrate(), and ObjDataCount().
CmiBool LBDB::statsAreOn [private] |
Definition at line 251 of file LBDBManager.h.
Referenced by LBDB(), MeasuredObjTime(), StatsOn(), TurnStatsOff(), and TurnStatsOn().
MigrateCBList LBDB::migrateCBList [private] |
Definition at line 252 of file LBDBManager.h.
Referenced by Migrated(), NotifyMigrated(), RemoveNotifyMigrated(), TurnOffNotifyMigrated(), TurnOnNotifyMigrated(), and useMem().
PredictCB* LBDB::predictCBFn [private] |
Definition at line 254 of file LBDBManager.h.
Referenced by ChangePredictor(), LBDB(), SetupPredictor(), TurnPredictorOff(), and TurnPredictorOn().
CmiBool LBDB::obj_running [private] |
Definition at line 256 of file LBDBManager.h.
Referenced by LBDB(), MulticastSend(), NoRunningObj(), ObjIsRunning(), Send(), and SetRunningObj().
int LBDB::runningObj [private] |
batsyncer LBDB::batsync [private] |
LocalBarrier LBDB::localBarrier [private] |
Definition at line 261 of file LBDBManager.h.
Referenced by AddLocalBarrierClient(), AddLocalBarrierReceiver(), AtLocalBarrier(), DoneRegisteringObjects(), LocalBarrierOff(), LocalBarrierOn(), RegisteringObjects(), RemoveLocalBarrierClient(), RemoveLocalBarrierReceiver(), ResumeClients(), TurnOffBarrierReceiver(), and TurnOnBarrierReceiver().
CmiBool LBDB::useBarrier [private] |
Definition at line 262 of file LBDBManager.h.
Referenced by AtLocalBarrier(), TurnManualLBOff(), and TurnManualLBOn().
LBMachineUtil LBDB::machineUtil [private] |
Definition at line 264 of file LBDBManager.h.
Referenced by IdleTime(), TotalTime(), TurnStatsOff(), and TurnStatsOn().
double LBDB::obj_walltime [private] |
double LBDB::obj_cputime [private] |
Definition at line 266 of file LBDBManager.h.
Referenced by BackgroundLoad(), GetTime(), LBDB(), and MeasuredObjTime().
StartLBCBList LBDB::startLBFnList [private] |
Definition at line 268 of file LBDBManager.h.
Referenced by AddStartLBFn(), RemoveStartLBFn(), StartLB(), TurnOffStartLBFn(), TurnOnStartLBFn(), and useMem().
int LBDB::startLBFn_count [private] |
Definition at line 269 of file LBDBManager.h.
Referenced by AddStartLBFn(), LBDB(), RemoveStartLBFn(), and StartLB().
1.5.1