Příklad
public
static
void
main(
String
[] args) {
Runtime.getRuntime().traceInstructions(
true
);
traced();
}
private
static
void
traced() {
System.out.println(
"Trasováno"
);
//$NON-NLS-1$
}
Řešení
Odeberte Runtime.traceInstructions() a místo něj použijte profilovací nástroj.
public
static
void
main(
String
[] args) {
traced();
}
private
static
void
traced() {
System.out.println(
"Trasováno"
);
//$NON-NLS-1$
}