Module: Pf2::Reporter

Defined in:
lib/pf2/reporter/pprof.rb,
lib/pf2/reporter/annotate.rb,
lib/pf2/reporter/stack_weaver.rb,
lib/pf2/reporter/firefox_profiler_ser2.rb

Defined Under Namespace

Classes: Annotate, FirefoxProfilerSer2, Pprof, Protobuf, StackWeaver

Constant Summary collapse

PROTO_TAGS =
{
  profile: {
    sample_type: 1,
    sample: 2,
    mapping: 3,
    location: 4,
    function: 5,
    string_table: 6,
    drop_frames: 7,
    keep_frames: 8,
    time_nanos: 9,
    duration_nanos: 10,
    period_type: 11,
    period: 12,
    comment: 13,
    default_sample_type: 14,
    doc_url: 15,
  },
  value_type: {
    type: 1,
    unit: 2,
  },
  sample: {
    location_id: 1,
    value: 2,
    label: 3,
  },
  label: {
    key: 1,
    str: 2,
    num: 3,
    num_unit: 4,
  },
  mapping: {
    id: 1,
    memory_start: 2,
    memory_limit: 3,
    file_offset: 4,
    filename: 5,
    build_id: 6,
    has_functions: 7,
    has_filenames: 8,
    has_line_numbers: 9,
    has_inline_frames: 10,
  },
  location: {
    id: 1,
    mapping_id: 2,
    address: 3,
    line: 4,
    is_folded: 5,
  },
  line: {
    function_id: 1,
    line: 2,
    column: 3,
  },
  function: {
    id: 1,
    name: 2,
    system_name: 3,
    filename: 4,
    start_line: 5,
  },
}