1
0
Fork 0

Clearer log messages

This commit is contained in:
Simon Grätzer 2017-01-11 16:17:45 +01:00
parent 0b5a1f6b70
commit ab6163350c
1 changed files with 10 additions and 6 deletions

View File

@ -499,7 +499,8 @@ int Conductor::_initializeWorkers(std::string const& suffix,
}
int Conductor::_finalizeWorkers() {
double now = TRI_microtime();
double compEnd = TRI_microtime();
bool storeResults = _state == ExecutionState::DONE;
if (_masterContext) {
_masterContext->postApplication();
@ -525,16 +526,19 @@ int Conductor::_finalizeWorkers() {
b.add("stats", VPackValue(VPackValueType::Object));
_statistics.serializeValues(b);
b.close();
b.add(Utils::aggregatorValuesKey, VPackValue(VPackValueType::Object));
_aggregators->serializeValues(b);
b.close();
if (_aggregators->size() > 0) {
b.add(Utils::aggregatorValuesKey, VPackValue(VPackValueType::Object));
_aggregators->serializeValues(b);
b.close();
}
b.close();
LOG(INFO) << "Done. We did " << _globalSuperstep << " rounds";
LOG(INFO) << "Startup Time: " << _computationStartTimeSecs - _startTimeSecs
<< "s";
LOG(INFO) << "Computation Time: " << now - _computationStartTimeSecs << "s";
LOG(INFO) << "Total: " << totalRuntimeSecs() << "s";
LOG(INFO) << "Computation Time: " << compEnd - _computationStartTimeSecs << "s";
LOG(INFO) << "Storage Time: " << TRI_microtime() - compEnd << "s";
LOG(INFO) << "Overall: " << totalRuntimeSecs() << "s";
LOG(INFO) << "Stats: " << b.toString();
return res;
}