@Experimental
@NoImplement
public interface ProfilingService
ProfilingDataProducer to begin emitting profiling data. For instance:
@Inject
private ProfilingService profilingService;
// register a profiling data producer for the TEST_PROFILING_TYPE event type
profilingService.register(TEST_PROFILING_TYPE, new TestProfilingDataProducer());
// ....
// trigger a profiling event
profilingService.getProfilingDataProducer(TEST_PROFILING_TYPE).event(data);
ProfilingDataProducer,
ProfilingEventType| Modifier and Type | Method and Description |
|---|---|
<T extends ProfilingEventContext,S> |
getProfilingDataProducer(ProfilingEventType<T> profilingEventType)
Returns a previously registered
ProfilingDataProducer that can be used to emit profiling events of a certain
ProfilingEventType. |
<T extends ProfilingEventContext,S> |
getProfilingDataProducer(ProfilingEventType<T> profilingEventType,
ProfilingProducerScope producerScope)
Returns a previously registered
ProfilingDataProducer that can be used to emit profiling events of a certain
ProfilingEventType indicating the producer scope. |
ThreadSnapshotCollector |
getThreadSnapshotCollector()
Returns a
ThreadSnapshotCollector that can be used to collect information about threading. |
<T extends ProfilingEventContext,S> |
registerProfilingDataProducer(ProfilingEventType<T> profilingEventType,
ProfilingDataProducer<T,S> profilingDataProducer)
Registers a
ProfilingDataProducer that can be obtained to emit profiling events of a certain
ProfilingEventType. |
<T extends ProfilingEventContext,S> ProfilingDataProducer<T,S> getProfilingDataProducer(ProfilingEventType<T> profilingEventType)
ProfilingDataProducer that can be used to emit profiling events of a certain
ProfilingEventType.profilingEventType - the ProfilingEventType that will be emitted.ProfilingDataProducer<T extends ProfilingEventContext,S> ProfilingDataProducer<T,S> getProfilingDataProducer(ProfilingEventType<T> profilingEventType, ProfilingProducerScope producerScope)
ProfilingDataProducer that can be used to emit profiling events of a certain
ProfilingEventType indicating the producer scope.profilingEventType - the ProfilingEventType that the ProfilingDataProducer will emitproducerScope - the ProfilingProducerScope that will be bound to the the ProfilingDataProducerProfilingDataProducer<T extends ProfilingEventContext,S> void registerProfilingDataProducer(ProfilingEventType<T> profilingEventType, ProfilingDataProducer<T,S> profilingDataProducer)
ProfilingDataProducer that can be obtained to emit profiling events of a certain
ProfilingEventType.profilingEventType - the ProfilingEventType that the ProfilingDataProducer will emit.profilingDataProducer - the ProfilingDataProducer that will be registered.ThreadSnapshotCollector getThreadSnapshotCollector()
ThreadSnapshotCollector that can be used to collect information about threading.ThreadSnapshotCollector.Copyright © 2022 MuleSoft, Inc.. All rights reserved.