Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pprof): calculate sample rate based on the profile units #992

Merged
merged 5 commits into from Apr 7, 2022

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Mar 31, 2022

Turned out that our assumptions regarding pprof implementations are invalid: in particular, pprof-nodejs package uses microseconds as the sample period unit (in opposite to Go's nanoseconds).

The PR:

  • adds pprof-nodejs sample types configuration
  • fixes sample rate calculation in pprof parser
  • improves tests
  • improves pprof parser/writer API

/cc @shaleynikov

@github-actions
Copy link
Contributor

github-actions bot commented Mar 31, 2022

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
webapp/public/assets/app.js 508.13 KB (0%) 10.2 s (0%) 2.7 s (+0.35% 🔺) 12.9 s

@codecov
Copy link

codecov bot commented Mar 31, 2022

Codecov Report

Merging #992 (5b98e0a) into main (b11d044) will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #992      +/-   ##
==========================================
+ Coverage   70.06%   70.09%   +0.04%     
==========================================
  Files          84       84              
  Lines        2932     2935       +3     
  Branches      708      711       +3     
==========================================
+ Hits         2054     2057       +3     
  Misses        875      875              
  Partials        3        3              
Impacted Files Coverage Δ
...graph/src/FlameGraph/FlameGraphComponent/index.tsx 84.69% <0.00%> (+0.29%) ⬆️
webapp/javascript/redux/reducers/continuous.ts 30.48% <0.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b11d044...5b98e0a. Read the comment docs.

# Conflicts:
#	pkg/convert/pprof/pprof_test.go
#	pkg/convert/pprof/writer.go
#	pkg/scrape/scrape.go
#	pkg/server/ingest.go
#	scripts/pprof-view/main.go
@kolesnikovae
Copy link
Collaborator Author

/create-server

@kolesnikovae kolesnikovae marked this pull request as ready for review April 4, 2022 13:30
@pyroscopebot
Copy link
Collaborator

pyroscopebot commented Apr 4, 2022

Screenshots

Throughput Throughput
Disk Usage Disk Usage
Memory Memory
Upload Errors (Total) Upload Errors (Total)
Successful Uploads (Total) Successful Uploads (Total)
CPU Utilization CPU Utilization

Generated by 🚫 dangerJS against 82c0c18

@petethepig petethepig merged commit c458556 into main Apr 7, 2022
@petethepig petethepig deleted the fix/pprof-custom-sample-rate branch April 7, 2022 02:17
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.

None yet

3 participants