Skip to content

Add p90 and p99 percentile tracking to pipeline performance stats#1306

Merged
mthrok merged 1 commit intomainfrom
export-D97726875
Mar 23, 2026
Merged

Add p90 and p99 percentile tracking to pipeline performance stats#1306
mthrok merged 1 commit intomainfrom
export-D97726875

Conversation

@moto-meta
Copy link
Copy Markdown
Contributor

@moto-meta moto-meta commented Mar 23, 2026

Summary:

Add p90 and p99 percentile tracking to SPDL pipeline performance statistics. Implements the P-square algorithm for streaming percentile estimation with O(1) memory and O(1) per-update complexity. Updates TaskPerfStats and QueuePerfStats dataclasses to include p90/p99 fields, modifies collection logic in hooks and queues to track percentiles, and updates logging to report the new metrics. Also updates the SQLite stats logger example to accommodate the schema changes.


AI generated Summary & Test Plan from DEV122498560

Differential Revision: D97726875

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 23, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Mar 23, 2026

@moto-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D97726875.

)

Summary:

Add p90 and p99 percentile tracking to SPDL pipeline performance statistics. Implements the P-square algorithm for streaming percentile estimation with O(1) memory and O(1) per-update complexity. Updates `TaskPerfStats` and `QueuePerfStats` dataclasses to include p90/p99 fields, modifies collection logic in hooks and queues to track percentiles, and updates logging to report the new metrics. Also updates the SQLite stats logger example to accommodate the schema changes.

---
AI generated Summary & Test Plan from DEV122498560

Differential Revision: D97726875
@meta-codesync meta-codesync bot changed the title Add p90 and p99 percentile tracking to pipeline performance stats Add p90 and p99 percentile tracking to pipeline performance stats (#1306) Mar 23, 2026
@mthrok mthrok merged commit 138fcea into main Mar 23, 2026
207 of 211 checks passed
@mthrok mthrok deleted the export-D97726875 branch March 23, 2026 15:18
@mthrok mthrok changed the title Add p90 and p99 percentile tracking to pipeline performance stats (#1306) Add p90 and p99 percentile tracking to pipeline performance stats Mar 23, 2026
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 Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants