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

feat: support finish profiling before process exit #203

Merged
merged 5 commits into from
Oct 14, 2022

Conversation

hyj1991
Copy link
Member

@hyj1991 hyj1991 commented Oct 12, 2022

背景

需要在进程出现 Fatal Error / OOM / 正常退出的场景下,对于尚未结束的 Profiling 动作进行立即结束,输出文件。

这样使得异常场景下,抓取的 profile 来不及结束时已经可以拿到已经采样的结果,方便进程退出场景下的故障定位。

close #195

@codecov
Copy link

codecov bot commented Oct 12, 2022

Codecov Report

Merging #203 (947dd58) into master (6a1701f) will not change coverage.
The diff coverage is n/a.

❗ Current head 947dd58 differs from pull request most recent head 04662d7. Consider uploading reports for the commit 04662d7 to get more accurate results

@@            Coverage Diff            @@
##            master      #203   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          296       296           
=========================================
  Hits           296       296           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hyj1991 hyj1991 marked this pull request as draft October 13, 2022 00:16
@hyj1991 hyj1991 marked this pull request as ready for review October 14, 2022 11:43
@hyj1991 hyj1991 requested a review from legendecas October 14, 2022 11:43
@hyj1991 hyj1991 merged commit b779aa2 into X-Profiler:master Oct 14, 2022
@hyj1991 hyj1991 mentioned this pull request Oct 22, 2022
hyj1991 added a commit that referenced this pull request Oct 22, 2022
Commits:

  - [2f700fd] docs: update readme (#207)
  - [f4eb960] feat: support node-v19.x (#206)
  - [333593e] chore: make test more reliable (#205)
  - [c574ca2] feat: save Elf BuildId in corefile. (#204)
  - [b779aa2] feat: support finish profiling before process exit (#203)
  - [6a1701f] refactor: replace dump actions static storages with EnvironmentData (#202)
  - [7608a86] fix: ignore clean error (#200)
  - [2a6eaba] chore: static dispatch on dumpaction (#199)
  - [7d3fbb2] optimize: take action (#198)
    
PR-URL: #208
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.

[RFC] 进程(异常)退出前尚在执行中的采样立即结束
2 participants