← All Learning Paths

Profiling Engineer

Measure before optimizing: allocation pressure, GC pauses, tail latency, pprof-driven leak hunts, and a performance regression triage that ends in CI gates.

roleadvanced5 nodes13.83h total

Path overview

性能优化第一原则是没有剖析数据就没有优化。本路径从分配压力与 GC 行为讲起,覆盖四种运行时的真实剖析案例,再走完性能回归分诊工作流,最终把性能预算固化进 CI。

Rule one of optimization: no profile, no optimization. This path covers allocation pressure, GC behavior, profiling cases across Go, Java, Node, and Python, regression triage, and CI budget gates.

  1. Reconstruct the reasoning behind "Performance Optimization: From Profiling to Deployment" by tracing "Budgets and Continuous Monitoring" to the failure it prevents in profiling systems.

    Completion criteria: Attach a decision log for "Performance Optimization: From Profiling to Deployment": the "Budgets and Continuous Monitoring" section, one rejected alternative, and the diff of the file you changed.

    Next step: Triage a Performance Regression

    ⏱ 1h

  2. Carry out "Triage a Performance Regression" on a profiling project, pausing at the "Define the regression precisely: Identify the affected route, percentile, time window, and" step to verify "The difference reproduces with the same load profile, or the production cohort comparison".

    Completion criteria: Deliver a transcript of "Triage a Performance Regression" with each step's command and observed state, ending at "Define the regression precisely: Identify the affected route, percentile, time window, and".

    Next step: Add a Performance Budget to CI

    ⏱ 1.5h

  3. Execute "Add a Performance Budget to CI" end to end, then repeat the last step with one parameter changed and compare "The config fails when a matched asset exceeds its gzip budget.".

    Prerequisites: Triage a Performance Regression

    Completion criteria: Deliver a transcript of "Add a Performance Budget to CI" with each step's command and observed state, ending at "The config fails when a matched asset exceeds its gzip budget.".

    Next step: Report Latency Percentiles from Raw Samples

    ⏱ 0.5h

  4. Build "Report Latency Percentiles from Raw Samples" for profiling code and verify {p50:50,p95:100,p99:100,mean:55} against both samples.

    Prerequisites: Add a Performance Budget to CI

    Completion criteria: Attach the solution file for "Profiling Engineer", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Profiling Engineer

    ⏱ 0.33h

  5. Ship "Stack merger" from "Build a Sampling Profiler Analyzer", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Add a Performance Budget to CI, Report Latency Percentiles from Raw Samples

    Completion criteria: Run the project's test command for "Build a Sampling Profiler Analyzer", paste the passing output, and attach the acceptance note for "Stack merger" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h