mirror of https://gitee.com/bigwinds/arangodb
Some stuff
This commit is contained in:
parent
41bc0da58e
commit
3565469ebf
|
@ -288,6 +288,7 @@ VPackBuilder Conductor::finishedWorkerStep(VPackSlice const& data) {
|
|||
LOG_TOPIC(INFO, Logger::PREGEL)
|
||||
<< "Finished gss " << _globalSuperstep << " in "
|
||||
<< (TRI_microtime() - _computationStartTimeSecs) << "s";
|
||||
_statistics.debugOutput();
|
||||
_globalSuperstep++;
|
||||
|
||||
// don't block the response for workers waiting on this callback
|
||||
|
|
|
@ -110,6 +110,15 @@ struct StatsManager {
|
|||
}
|
||||
return send == received;
|
||||
}
|
||||
|
||||
void debugOutput() {
|
||||
uint64_t send = 0, received = 0;
|
||||
for (auto const& pair : _serverStats) {
|
||||
send += pair.second.sendCount;
|
||||
received += pair.second.receivedCount;
|
||||
}
|
||||
LOG_TOPIC(INFO, Logger::PREGEL) << send << " - " << received << " : " << send - received;
|
||||
}
|
||||
|
||||
/// tests if active count is greater 0
|
||||
bool executionFinished() {
|
||||
|
|
|
@ -423,17 +423,17 @@ bool Worker<V, E, M>::_processVertices(
|
|||
MessageStats stats;
|
||||
stats.sendCount = outCache->sendCount();
|
||||
stats.superstepRuntimeSecs = TRI_microtime() - start;
|
||||
if (t > 0.005) {
|
||||
LOG_TOPIC(INFO, Logger::PREGEL) << "Total " << stats.superstepRuntimeSecs
|
||||
<< " s merge took " << t << " s";
|
||||
}
|
||||
|
||||
inCache->clear();
|
||||
outCache->clear();
|
||||
|
||||
bool lastThread = false;
|
||||
{ // only one thread at a time
|
||||
MUTEX_LOCKER(guard, _threadMutex);
|
||||
if (t > 0.005) {
|
||||
LOG_TOPIC(INFO, Logger::PREGEL) << "Total " << stats.superstepRuntimeSecs
|
||||
<< " s merge took " << t << " s";
|
||||
}
|
||||
|
||||
// merge the thread local stats and aggregators
|
||||
_workerAggregators->aggregateValues(workerAggregator);
|
||||
_messageStats.accumulate(stats);
|
||||
|
|
Loading…
Reference in New Issue