Class Tracer
java.lang.Object
com._1c.g5.v8.internal.derived.tracing.Tracer
Tracing facility for DD subsystem. It should be used only during the development and cannot be used
as a tracing logic for the end product/CI due to resource/performance issues.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidlogDDState(boolean isInfrastructureReady, PipelineStatus pipelineStatus, DerivedDataStatus ddStatus) Logs current overal DD state into the consolestatic voidTraces the blocking of the async.static voidtraceAsyncPipelineBlockingDueToUnreadyInfrastructure(boolean blocked) Traces the blocking of the async.static voidTraces the blocking of the async.static voidTraces the disengagement of the forced DD stop.static voidTraces the engagement of the forced DD stop.static voidtraceImplicitWaitScope(List<IObjectDerivedDataContext> changedContexts, Set<String> segmentsToWait, boolean sync) Traces the scope of the implicit DD computaiton waiting being performed after the commit of the transactionstatic voidtraceObjectDDComputationFailedWhileWaiting(DerivedDataInfo info, IBmObject sourceObject, IAsyncProcessingPipeline asyncProcessingPipeline, IDerivedDataContextManager contextManager) Traces the failure of DD computation while waiting for DD of this object to be computed
-
Constructor Details
-
Tracer
public Tracer()
-
-
Method Details
-
logDDState
public static void logDDState(boolean isInfrastructureReady, PipelineStatus pipelineStatus, DerivedDataStatus ddStatus) Logs current overal DD state into the console- Parameters:
isInfrastructureReady- States if the service infrastructure is ready for DD subsystem to perform compatuationspipelineStatus- The current asynchronous DD pipeline status. Cannot benullddStatus- Current status of DD for the calling project. Cannot benull
-
traceObjectDDComputationFailedWhileWaiting
public static void traceObjectDDComputationFailedWhileWaiting(DerivedDataInfo info, IBmObject sourceObject, IAsyncProcessingPipeline asyncProcessingPipeline, IDerivedDataContextManager contextManager) Traces the failure of DD computation while waiting for DD of this object to be computed- Parameters:
info- The DD info for the target object. Cannot benullsourceObject- Source object. Cannot benullasyncProcessingPipeline- Current asynchronous DD processing pipeline. Cannot benullcontextManager- The DD context manager. Cannot benull
-
traceAsyncPipelineBlockedByOrchestrator
Traces the blocking of the async. DD processing pipeline by decision of the derived data orchestrator.- Parameters:
activeBucket- The current DD bucket scheduled for the computation.
-
traceAsyncPipelineBlockingDueToUnreadyInfrastructure
public static void traceAsyncPipelineBlockingDueToUnreadyInfrastructure(boolean blocked) Traces the blocking of the async. DD processing pipeline due to service infrastructure being unready at the moment- Parameters:
blocked- The DD is blocked due to external lock
-
traceAsyncPipelineBlockingDueToUserActivity
public static void traceAsyncPipelineBlockingDueToUserActivity(DerivedDataSegmentBucket activeBucket) Traces the blocking of the async. DD processing pipeline due to user being active at the moment- Parameters:
activeBucket- The current DD bucket scheduled for the computation.
-
traceImplicitWaitScope
public static void traceImplicitWaitScope(List<IObjectDerivedDataContext> changedContexts, Set<String> segmentsToWait, boolean sync) Traces the scope of the implicit DD computaiton waiting being performed after the commit of the transaction- Parameters:
changedContexts- The list of DD contexts being changed within the transaction, cannot benullsegmentsToWait- Set of DD segments that the DD is going to waitsync- States if there is a file sync phase of DD computation at the moment
-
traceForcedStopInvoked
public static void traceForcedStopInvoked()Traces the engagement of the forced DD stop. -
traceForcedStopCleared
public static void traceForcedStopCleared()Traces the disengagement of the forced DD stop.
-