Skip to content

Add standalone cpu-pidstat Benchpress hook#677

Open
aashvibusa wants to merge 1 commit into
facebookresearch:v2-betafrom
aashvibusa:export-D107446848-to-v2-beta
Open

Add standalone cpu-pidstat Benchpress hook#677
aashvibusa wants to merge 1 commit into
facebookresearch:v2-betafrom
aashvibusa:export-D107446848-to-v2-beta

Conversation

@aashvibusa

@aashvibusa aashvibusa commented Jun 3, 2026

Copy link
Copy Markdown

Summary:
Add a standalone cpu-pidstat Benchpress hook for collecting per-process and per-thread CPU utilization during benchmark runs.

The new hook starts pidstat in the background before a job, writes raw pidstat output into the benchmark metrics directory, and terminates the background process after the job completes. This mirrors the existing cpu-mpstat standalone hook pattern while keeping the standalone pidstat hook separate from perf hook sub-monitors.

Also registers the hook as cpu-pidstat and adds unit coverage for default options, custom args, graceful shutdown, and forced termination.

Differential Revision: D107446848

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 3, 2026
@meta-codesync

meta-codesync Bot commented Jun 3, 2026

Copy link
Copy Markdown

@aashvibusa has exported this pull request. If you are a Meta employee, you can view the originating Diff in D107446848.

Summary:
Add a standalone cpu-pidstat Benchpress hook for collecting per-process and per-thread CPU utilization during benchmark runs.

The new hook starts pidstat in the background before a job, writes raw pidstat output into the benchmark metrics directory, and terminates the background process after the job completes. This mirrors the existing cpu-mpstat standalone hook pattern while keeping the standalone pidstat hook separate from perf hook sub-monitors.

Also registers the hook as cpu-pidstat and adds unit coverage for default options, custom args, graceful shutdown, and forced termination.

Differential Revision: D107446848
@aashvibusa aashvibusa force-pushed the export-D107446848-to-v2-beta branch from e6cb7eb to c155d60 Compare June 5, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant