remove traces
This commit is contained in:
parent
cc6e395664
commit
17f9da6962
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue