1
0
Fork 0

Some stuff

This commit is contained in:
Simon Grätzer 2017-02-22 18:56:35 +01:00
parent 41bc0da58e
commit 3565469ebf
3 changed files with 15 additions and 5 deletions

View File

@ -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

View File

@ -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() {

View File

@ -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);