29 #include <Ice/Connection.h>
30 #include <Ice/Endpoint.h>
31 #include <IceSSL/EndpointInfo.h>
33 #include "../exceptions/local/ExpressionException.h"
34 #include "../services/tasks/TaskUtil.h"
72 report(ProfilerListenerPrx& profiler,
const std::string& applicationName)
74 profiler->reportNetworkTraffic(
79 std::atomic<Ice::Int>
sent{0};
99 reportNetworkTrafficTask =
102 observerTCP->report(profiler, applicationName);
103 observerUDP->report(profiler, applicationName);
104 observerSSL->report(profiler, applicationName);
105 observerUnknown->report(profiler, applicationName);
108 reportNetworkTrafficTask->start();
114 reportNetworkTrafficTask->stop();
122 Ice::Instrumentation::ConnectionObserverPtr
124 const Ice::ConnectionInfoPtr& ,
125 const Ice::EndpointPtr& e,
126 Ice::Instrumentation::ConnectionState ,
127 const Ice::Instrumentation::ConnectionObserverPtr& )
129 const auto protocol = e->getInfo()->type();
132 case Ice::TCPEndpointType:
134 case Ice::UDPEndpointType:
136 case Ice::SSLEndpointType:
141 <<
"Unknown protocol with type " << protocol;
142 return observerUnknown;
146 Ice::Instrumentation::ObserverPtr
153 Ice::Instrumentation::ObserverPtr
159 Ice::Instrumentation::ThreadObserverPtr
162 Ice::Instrumentation::ThreadState,
163 const Ice::Instrumentation::ThreadObserverPtr&)
168 Ice::Instrumentation::InvocationObserverPtr
176 Ice::Instrumentation::DispatchObserverPtr