java.lang.Object
com._1c.g5.v8.internal.derived.tracing.Tracer

public class Tracer extends Object
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 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 compatuations
      pipelineStatus - The current asynchronous DD pipeline status. Cannot be null
      ddStatus - Current status of DD for the calling project. Cannot be null
    • 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 be null
      sourceObject - Source object. Cannot be null
      asyncProcessingPipeline - Current asynchronous DD processing pipeline. Cannot be null
      contextManager - The DD context manager. Cannot be null
    • traceAsyncPipelineBlockedByOrchestrator

      public static void traceAsyncPipelineBlockedByOrchestrator(DerivedDataSegmentBucket activeBucket)
      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 be null
      segmentsToWait - Set of DD segments that the DD is going to wait
      sync - 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.