Class ExportDebugTrace

java.lang.Object
com._1c.g5.v8.dt.export.ExportDebugTrace
All Implemented Interfaces:
EventListener, org.eclipse.osgi.service.debug.DebugOptionsListener, org.eclipse.osgi.service.debug.DebugTrace

public class ExportDebugTrace extends Object implements org.eclipse.osgi.service.debug.DebugOptionsListener, org.eclipse.osgi.service.debug.DebugTrace
Export debug options manager
  • Field Details

    • EXPORT_PERFORMANCE_TRACE_OPTION

      public static final String EXPORT_PERFORMANCE_TRACE_OPTION
      Trace option constant for Export performance
      See Also:
  • Method Details

    • getInstance

      public static ExportDebugTrace getInstance()
      Returns instance of ExportDebugTrace
      Returns:
      instance of ExportDebugTrace, never null
    • optionsChanged

      public void optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options)
      Specified by:
      optionsChanged in interface org.eclipse.osgi.service.debug.DebugOptionsListener
    • startPerformanceMeasurements

      public void startPerformanceMeasurements(Object measurementsId)
      Start performance measurements if trace and option is active
      Parameters:
      measurementsId - the id of measurement, cannot be null
    • stopPerformanceMeasurements

      public void stopPerformanceMeasurements(Object measurementsId, String messagePattern, TimeUnit timeUnit)
      Start and trace performance measurements by specified id if trace and option is active
      Parameters:
      measurementsId - the id of measurement, cannot be null
      messagePattern - the trace message, use {0} to insert performance value, cannot be null
      timeUnit - to trace performance value in desired units, cannot be null
    • tracePerformance

      public void tracePerformance(String messagePattern, Object... args)
      Traces a performance export message.

      used MessageFormat.format(String, Object...) for formatting trace message

      Parameters:
      messagePattern - the trace message pattern to display, cannot be null
      args - arguments object(s) to format message
      See Also:
    • trace

      public void trace(String option, String message)
      Specified by:
      trace in interface org.eclipse.osgi.service.debug.DebugTrace
    • trace

      public void trace(String option, String message, Throwable error)
      Specified by:
      trace in interface org.eclipse.osgi.service.debug.DebugTrace
    • traceDumpStack

      public void traceDumpStack(String option)
      Specified by:
      traceDumpStack in interface org.eclipse.osgi.service.debug.DebugTrace
    • traceEntry

      public void traceEntry(String option)
      Specified by:
      traceEntry in interface org.eclipse.osgi.service.debug.DebugTrace
    • traceEntry

      public void traceEntry(String option, Object methodArgument)
      Specified by:
      traceEntry in interface org.eclipse.osgi.service.debug.DebugTrace
    • traceExit

      public void traceExit(String option)
      Specified by:
      traceExit in interface org.eclipse.osgi.service.debug.DebugTrace
    • traceEntry

      public void traceEntry(String option, Object[] methodArguments)
      Specified by:
      traceEntry in interface org.eclipse.osgi.service.debug.DebugTrace
    • traceExit

      public void traceExit(String option, Object result)
      Specified by:
      traceExit in interface org.eclipse.osgi.service.debug.DebugTrace