remove traces

This commit is contained in:
Nim Wijetunga 2021-03-16 16:47:50 +00:00
parent cc6e395664
commit 17f9da6962
3 changed files with 2 additions and 5 deletions

View File

@ -1747,7 +1747,6 @@ void setupNetwork(uint64_t transportId, bool useMetrics) {
FlowTransport::createInstance(true, transportId);
Net2FileSystem::newFileSystem();
TraceEvent("Nim_setupNetwork");
systemMonitorNetworkBusyness();
uncancellable(recurring(&systemMonitorNetworkBusyness, CLIENT_KNOBS->NETWORK_BUSYNESS_MONITOR_INTERVAL, TaskPriority::FlushTrace));
}

View File

@ -94,11 +94,9 @@ ThreadFuture<Void> ThreadSafeDatabase::createSnapshot(const StringRef& uid, cons
double ThreadSafeDatabase::getMainThreadBusyness() {
// Return the main network thread busyness
if (!g_network) {
TraceEvent("Nim_getBusyness g_network null");
// TODO: Is this the right thing to do in this case?
return 0.0;
}
TraceEvent("Nim_getBusyness g_network good");
return g_network->networkInfo.metrics.networkBusyness;
}

View File

@ -355,7 +355,7 @@ struct NetworkMetrics {
}
NetworkMetrics& operator=(const NetworkMetrics& rhs) {
// Since networkBusyness is atomic we need to redfine copy assignment oeprator
// Since networkBusyness is atomic we need to redfine copy assignment operator
for (int i = 0; i < SLOW_EVENT_BINS; i++) {
countSlowEvents[i] = rhs.countSlowEvents[i];
}
@ -365,7 +365,7 @@ struct NetworkMetrics {
lastRunLoopBusyness = rhs.lastRunLoopBusyness;
networkBusyness = rhs.networkBusyness.load();
starvationTrackers = rhs.starvationTrackers;
starvationTrackersOneSecondInterval = starvationTrackersOneSecondInterval;
starvationTrackersOneSecondInterval = rhs.starvationTrackersOneSecondInterval;
return *this;
}
};