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

Move instrument.erl to runtime_tools #6829

Merged
merged 1 commit into from Feb 22, 2023

Conversation

josevalim
Copy link
Contributor

instrument.erl can be a useful tool for debugging
memory allocation and memory leaks in production
systems. For example, eventually we could have a
button in Observer that invokes instrument and
prints a histogram on demand. For this purpose,
however, it must be part of runtime_tools.

Feel free to close this PR if you believe this is the
wrong approach. :)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

CT Test Results

       5 files     152 suites   54m 55s ⏱️
1 694 tests 1 630 ✔️ 64 💤 0
2 131 runs  2 046 ✔️ 85 💤 0

Results for commit 7671649.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@josevalim
Copy link
Contributor Author

Dialyzer is failing but I have no idea how it still finds instrument.erl in tools :D

@jhogberg jhogberg added team:VM Assigned to OTP team VM enhancement labels Feb 9, 2023
@jhogberg jhogberg self-assigned this Feb 9, 2023
@starbelly
Copy link
Contributor

Dialyzer is failing but I have no idea how it still finds instrument.erl in tools :D

I think is a docker / cache problem. I can't replicate the failure locally, FWIW.

@jhogberg jhogberg added testing currently being tested, tag is used by OTP internal CI and removed testing currently being tested, tag is used by OTP internal CI labels Feb 15, 2023
@jhogberg
Copy link
Contributor

Thanks for the PR!

The doc check fails at the moment, try updating the efficiency guide and ERTS documentation to point at runtime_tools:instrument instead of tools:instrument.

[2023-02-15T12:54:47.032Z] /daily_build/otp_src/erts/doc/xml/erlang.xml:4361 Could not find: tools:instrument

instrument.erl can be a useful tool for debugging
memory allocation and memory leaks in production
systems. For example, eventually we could have a
button in Observer that invokes instrument and
prints a histogram on demand. For this purpose,
however, it must be part of runtime_tools.
@josevalim
Copy link
Contributor Author

@starbelly thank you.

@jhogberg fixed.

@jhogberg jhogberg added the testing currently being tested, tag is used by OTP internal CI label Feb 20, 2023
@jhogberg jhogberg merged commit 8bd51c2 into erlang:master Feb 22, 2023
@jhogberg
Copy link
Contributor

Merged, thanks again for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants