


The formatted trace output looks similar to the following extract, which is truncated to show the key areas of information: Trace Summary Processing 0.4921875Mb of binary trace dataĬompleted processing of 6983 tracepoints with 0 warnings and 0 errors The following example shows output from running the trace formatter command: C:\test>traceformat c Output detailed warning and error messages, and performance statistics. Specifies the offset from UTC, as positive or negative hours and minutes, to apply when formatting time stamps. Any number of thread IDs can be specified, separated by commas. thread id is the ID of the thread, which can be specified in decimal or hex (0x) format. Prints summary information to the screen without generating an output file.įilters the output for the given thread IDs only. The default is not to indent the messages. Indents trace messages at each Entry trace point and outdents trace messages at each Exit trace point. Specifies whether to format the time stamps into human readable form. By default, the following files are used:$JAVA_HOME/lib/J9TraceFormat.dat and $JAVA_HOME/lib/TraceFormat.dat The following are available with the trace formatter: OptionĪ comma-separated list of trace formatting data files. In this case, increase the heap size by using the -Xmx option. For large numbers of threads the formatter might run out of memory, generating the error OutOfMemoryError. The size of the heap that is needed to format the trace is directly proportional to the number of threads present in the trace file. NET CLI PackageReference Paket CLI Script & Interactive Cake NuGet\Install-Package ToyStackTraceFormatter -Version 1.0.1 This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package. If you do not specify an output file, the output file is called input_file.fmt. Where is the name of the binary trace file to be formatted, and is the name of the output file. To use the trace formatter on a binary trace file type: traceformat The formatter produces a file that contains header information about the VM that produced the binary trace file, a list of threads for which trace points were produced, and the formatted trace points with their time stamp, thread ID, trace point ID, and trace point data. The formatter requires the TraceFormat.dat and J9TraceFormat.dat files, which contain the formatting templates. The trace formatter is a Java™ program that converts binary trace point data in a trace file to a readable form. XX:OriginalJDK8HeapSizeCompatibilityMode
