Skip to content

feat: add simple PMC counters support #93

Draft
kavirajk wants to merge 4 commits into
ClickHouse:mainfrom
kavirajk:kavirajk/support-pmc-counters
Draft

feat: add simple PMC counters support #93
kavirajk wants to merge 4 commits into
ClickHouse:mainfrom
kavirajk:kavirajk/support-pmc-counters

Conversation

@kavirajk

Copy link
Copy Markdown
Contributor

Part of this issue #92

Changes

  1. Add Pmc counters of basic hardware/software counters (cycles,
    instructions and context-switches)
  2. Add apis (open, close, reset, enable, disable) for those PMC counters
  3. Also integrated with file-perf benchmark to show it's usefulness.

counters

ec2-numa-dev$ ./build/release/bin/file-perf --filename /dev/shm/testfile --print-counters --pmc
...
,  "pmc": {
    "valid": true,
    "scaled": false,
    "cycles": 351131134388,
    "instructions": 180409144759,
    "context_switches": 12217432,
    "ipc": 0.5138,
    "cycles_per_io": 67772.3,
    "instructions_per_io": 34821.0
  }
...

kavirajk added 3 commits June 28, 2026 23:24
Changes
1. Add Pmc counters of basic hardware/software counters (cycles,
   instructions and context-switches)
2. Add apis (open, close, reset, enable, disable) for those PMC counters

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
@praktika-gh

praktika-gh Bot commented Jun 28, 2026

Copy link
Copy Markdown

Workflow [PR], commit [7034a52]

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant