Skip to content

PEP format specification

Patryk Kiepas edited this page Jun 19, 2020 · 8 revisions
  • File header
    • Format tag ["pep"]
    • Format version [uint16_t]
    • Number of profile traces N [uint16_t]
    • Has instruction address flag IAF [bool]
  • 1..N profile traces:
    • Trace start tag ["@start"]
    • Trace label
      • Label size LS [uint16_t]
      • Label content of size LS [LS * sizeof(char)]
    • List of performance events
      • Number of events NE [uint8_t]
      • 1..NE performance events
        • Event length EL [uint8_t]
        • Event content [EL * sizeof(char)]
    • Measurements of performance events
      • Number of observations (row of measurement values) [uint32_t]
      • Measurements [NE * sizeof(long long int)]
      • Instruction address [if(IAF) then sizeof(inst_address_t)]; usually, inst_address_t == unsigned long
    • Trace end tag ["@end"]
Clone this wiki locally