@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> |
getProfilingDataProducer(ProfilingEventType<T> profilingEventType)
Returns a previously registered
ProfilingDataProducer that can be used to emit profiling events of a certain
ProfilingEventType. |
ThreadSnapshotCollector |
getThreadSnapshotCollector()
Returns a
ThreadSnapshotCollector that can be used to collect information about threading. |
<T extends ProfilingEventContext> |
registerProfilingDataProducer(ProfilingEventType<T> profilingEventType,
ProfilingDataProducer<T> profilingDataProducer)
Registers a
ProfilingDataProducer that can be obtained to emit profiling events of a certain
ProfilingEventType. |
<T extends ProfilingEventContext> ProfilingDataProducer<T> 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> void registerProfilingDataProducer(ProfilingEventType<T> profilingEventType, ProfilingDataProducer<T> 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 © 2021 MuleSoft, Inc.. All rights reserved.