ark::perf::PerfEventHandleConfig

Defined in header “ark/perf/perf_event_handle.hh”.


Configuration for a new perf event handle.

Variables

  • PerfEventSchema schema
    The schema, which can be loaded with create_perf_event_schema.

  • int32_t pid= -1
    The PID that you listen on. Must be a non-negative number if CPU is negative. If zero, listens on this thread. If negative, listens on all threads on the system. If positive, listens on that PID/TID.

  • int32_t cpu= -1
    The CPU that you listen on. Must be a non-negative number if pid is negative. If a positive number (or zero), listens on that CPU number. If negative, listens on all CPUs.

  • uint64_t buffer_size_pages= 128
    The buffer size, in pages. Must be a power of two. This is the size of the ring buffer on the kernel side.

  • uint32_t event_wakeup_threshold= 32
    Number of events to accumulate before data is collected from the kernel. Lower numbers wake up more often (more system impact) but reduce latency on events that are captured.