@Weight(value=VARIABLE) public class CallTrace extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
EOL_LINUX
Default end-of-line for linux.
|
static String |
EOL_WINDOWS
Default end-of-line for windows.
|
Constructor and Description |
---|
CallTrace()
The Constructor allows to create call trace history point for the called method.
|
CallTrace(boolean skipConstructors,
boolean pack,
String eol)
The Constructor allows to create call trace history with defined end-of-line symbol and since needed stack item position.
|
Modifier and Type | Method and Description |
---|---|
String |
getThreadDescriptor()
Get the descriptor of the thread where the object instance was created.
|
String |
restoreStackTrace()
Restore stack trace as a string from inside data representation.
|
String |
toString() |
public static final String EOL_LINUX
public static final String EOL_WINDOWS
public CallTrace()
EOL_LINUX
@Weight(value=VARIABLE, comment="Depends on the call stack depth") public CallTrace(boolean skipConstructors, boolean pack, String eol)
skipConstructors
- flag to skip first calls from constructors in the stack.pack
- flag shows that string data must be packed, false if should not be packedeol
- string shows which end-of-line should be usedEOL_LINUX
,
EOL_WINDOWS
public String getThreadDescriptor()
Thread.toString()
public String restoreStackTrace()
Copyright © 2011–2021 Igor Maznitsa. All rights reserved.