To enable:
perf_monitor = { cpu = true }
+
+==== Formatters
+
+Performance monitor allows statistics to be output in a few formats. Along with
+human readable text (as seen at shutdown) and csv formats, a Flatbuffers binary
+format is also available if Flatbuffers is present at build. A utility for
+accessing the statistics generated in this format has been included for
+convenience (see fbstreamer in tools). This tool generates a YAML array of
+records found, allowing the data to be read by humans or passed into other
+analysis tools. For information on working direclty with the Flatbuffers file
+format used by Performance monitor, see the developer notes for Performance
+monitor or the code provided for fbstreamer.
2. CSV
3. Flatbuffers (if the library is available at build)
+
+==== Flatbuffers Parsing
+
+While a tool has been included to parse the file format used, it may be
+desired to build analysis tools that deal with the files directly. This can
+be accomplished in a few ways; either the records can be split and passed to
+flatc along with the included schema, or the schema can be parsed using the
+Flatbuffers reflection API and used to read the data within the records.
+The format for the files is as follows:
+
+===== File Layout
+
+[options="header"]
+|============================================================================
+|Section |Description
+|File Header |File ID and schema for parsing. This appears once at the start.
+|Records |This is a stream of records. There may be an unlimited number.
+|============================================================================
+
+===== File Header
+
+[options="header"]
+|==========================================================================
+|Field Name |Size |Description
+|Magic |4 bytes |Format identifier. Only "FLTI" exists.
+|Schema Size |4 bytes |Size of the included schema.
+|Schema |(schema size) bytes |Schema for parsing records in this file.
+|==========================================================================
+
+===== Record
+
+[options="header"]
+|===========================================================================
+|Field Name |Size |Description
+|Timestamp |8 bytes |The time this record was written
+|Record Size |4 bytes |Size of the record to follow
+|Record |(record size) bytes |Binary record. Parse against file schema.
+|===========================================================================