Package fr.bl.drit.flow.agent
Class JsonlThreadRecorder
java.lang.Object
fr.bl.drit.flow.agent.JsonlThreadRecorder
- All Implemented Interfaces:
Recorder,ThreadRecorder,Closeable,AutoCloseable
Call tree JSONL recorder.
Each line is either:
- A method enter event:
{"e":"enter","method":"<id>"} - A method exit event:
{"e":"exit"}
-
Constructor Details
-
JsonlThreadRecorder
- Parameters:
outputDir- Path to output directory- Throws:
IOException- If an I/O error occurs when opening an output stream.
-
-
Method Details
-
getFileName
- Returns:
- The file name this recorder is writing to
-
enter
Description copied from interface:RecorderEmit a method enter event with the given method ID.- Specified by:
enterin interfaceRecorder- Parameters:
methodId- The ID of the method to trace- Throws:
IOException- If an I/O error occurs when emitting the event.
-
exit
Description copied from interface:RecorderEmit a method exit event.- Specified by:
exitin interfaceRecorder- Throws:
IOException- If an I/O error occurs when emitting the event.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-