Package com._1c.g5.v8.dt.export
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Trace option constant for Export performance -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportDebugTrace
Returns instance ofExportDebugTrace
void
optionsChanged
(org.eclipse.osgi.service.debug.DebugOptions options) void
startPerformanceMeasurements
(Object measurementsId) Start performance measurements if trace and option is activevoid
stopPerformanceMeasurements
(Object measurementsId, String messagePattern, TimeUnit timeUnit) Start and trace performance measurements by specified id if trace and option is activevoid
void
void
traceDumpStack
(String option) void
traceEntry
(String option) void
traceEntry
(String option, Object methodArgument) void
traceEntry
(String option, Object[] methodArguments) void
void
void
tracePerformance
(String messagePattern, Object... args) Traces a performance export message.
-
Field Details
-
EXPORT_PERFORMANCE_TRACE_OPTION
Trace option constant for Export performance- See Also:
-
-
Method Details
-
getInstance
Returns instance ofExportDebugTrace
- Returns:
- instance of
ExportDebugTrace
, nevernull
-
optionsChanged
public void optionsChanged(org.eclipse.osgi.service.debug.DebugOptions options) - Specified by:
optionsChanged
in interfaceorg.eclipse.osgi.service.debug.DebugOptionsListener
-
startPerformanceMeasurements
Start performance measurements if trace and option is active- Parameters:
measurementsId
- the id of measurement, cannot benull
-
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 benull
messagePattern
- the trace message, use{0}
to insert performance value, cannot benull
timeUnit
- to trace performance value in desired units, cannot benull
-
tracePerformance
Traces a performance export message.used
MessageFormat.format(String, Object...)
for formatting trace message- Parameters:
messagePattern
- the trace message pattern to display, cannot benull
args
- arguments object(s) to format message- See Also:
-
trace
- Specified by:
trace
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
trace
- Specified by:
trace
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceDumpStack
- Specified by:
traceDumpStack
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceEntry
- Specified by:
traceEntry
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceEntry
- Specified by:
traceEntry
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceExit
- Specified by:
traceExit
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceEntry
- Specified by:
traceEntry
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-
traceExit
- Specified by:
traceExit
in interfaceorg.eclipse.osgi.service.debug.DebugTrace
-