summaryrefslogtreecommitdiff
path: root/lib/runtime_tools/src
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearErlang/OTP2023-05-151-1/+1
|
* dbg: deprecates function dbg:stop_clear/1Kiko Fernandez-Reyes2023-04-191-3/+4
| | | | | | | | function `dbg:stop_clear/1` is not documented in the API but was kept for compatibility reasons. in this commit we make a step forward to deprecating its use such that it will be eventually removed. closes GH-6903.
* Update copyright yearErlang/OTP2023-04-111-1/+1
|
* [runtime_tools,erts] Remove erts_alloc_configRickard Green2023-04-061-730/+1
|
* Update copyright yearErlang/OTP2023-03-213-3/+3
|
* fix instrument:carriers specZeyu Zhang2023-02-281-3/+3
|
* Merge pull request #6829 from josevalim/jv-move-instrumentJohn Högberg2023-02-223-1/+161
|\ | | | | | | | | Move instrument.erl to runtime_tools OTP-18487
| * Move instrument.erl to runtime_toolsJosé Valim2023-02-153-1/+161
| | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'raimo/kernel/boot-on_load'Raimo Niskanen2023-02-131-1/+23
|\ \ | |/ |/| | | | | * raimo/kernel/boot-on_load: Use internal wildcard function from -on_load
| * Use internal wildcard function from -on_loadRaimo Niskanen2023-02-131-1/+23
| | | | | | | | | | | | The file server may not be started in embedded mode, so we have to use our own undocumented option to filelib:wildcard/2 to avoid hanging, waiting fo the file server, in embedded mode...
* | Remove HiPE info from system_information.erlJosé Valim2023-02-041-40/+0
|/
* dbg: Start using caller_line in dbgLukas Larsson2022-07-081-2/+2
|
* dbg: Add dbg:tracer(file, Filename)Lukas Larsson2022-07-081-2/+11
| | | | This function can be used to trace to a file in clear text
* erts: Remove unused CERL_DETACHED_PROG codeLukas Larsson2022-04-061-1/+0
| | | | | | | The CERL_DETACHED_PROG code seems to be a relic that is no longer used. So we delete it doesn't work anyway. Closes #4323
* Merge branch 'bmk/observer/20220330/port_socket_options/OTP-18012'Micael Karlberg2022-04-041-14/+45
|\ | | | | | | OTP-18012
| * [observer|runtime_tools] Fixed dialyzer issueMicael Karlberg2022-04-011-5/+2
| | | | | | | | OTP-18012
| * [observer] What to do with "bad" optionsMicael Karlberg2022-03-311-6/+11
| | | | | | | | | | | | | | | | | | | | | | Include "bad" options in the list, but not with a "value" (since we did not get any). Instead with something that will explain "something": A string; either "-", "Not Supported" or "error: ..." We can see what is missing and why (its better then nothing). Also, this is approx like what is done for socket. OTP-18012
| * [runtime_tools|observer] Fix copyright end dateMicael Karlberg2022-03-311-1/+1
| | | | | | | | OTP-18012
| * [observer] Reading invalid port socket optionsMicael Karlberg2022-03-301-9/+38
| | | | | | | | | | | | | | | | Reading port socket options is now done "individually". This means that if one option is invalid its simply skipped, and we continue with the rest. OTP-18012
* | runtime_tools: Use new -nifs([]) attributeSverker Eriksson2022-03-291-0/+12
|/
* Update copyright yearErlang/OTP2022-03-231-1/+1
|
* runtime_tools: Schedule erts_alloc_config for removalJohn Högberg2022-02-211-0/+3
|
* Update copyright yearErlang/OTP2022-02-153-3/+3
|
* dbg: Disarm the stop/0 footgunJohn Högberg2022-02-021-5/+11
| | | | | | | | | | | | | | | | | | | | | | `dbg:stop/0` explicitly leaves global function tracing untouched, which can lead to some very confusing situations: 1. As it clears the trace flags of all processes, it often *looks* like all global function trace patterns have been cleared, leaving a fun surprise for the next poor sod that tries to trace anything. 2. It makes it really annoying to clear global function traces afterwards, as we've discarded all information on what nodes we've been tracing on. The user more or less has to call `erlang:trace_pattern/3` themselves on all nodes they've traced on. Since clearing the trace flags of all processes means that `dbg` can't coexist with other trace tools to begin with, there is very little point in keeping global trace patterns around after stop/0. This commit makes stop/0 behave like stop_clear/0, ensuring that *ALL* tracing is turned off on *ALL* associated nodes before shutting down.
* otp: Fix `make TYPE=$TYPE` to work for all typesLukas Larsson2022-01-211-1/+1
|
* Merge branch 'maint'Sverker Eriksson2022-01-111-13/+28
|\
| * Merge branch 'sverker/scheduler_wall_time-doc' into maintSverker Eriksson2022-01-111-13/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | OTP-17800 OTP-17830 * sverker/scheduler_wall_time-doc: runtime_tools: Add scheduler:get_sample/0 and get_sample_all/0 runtime_tools: Fix bug in scheduler:utilization(Seconds) erts: Clarify system_flag(scheduler_wall_time,_) docs
| | * runtime_tools: Add scheduler:get_sample/0 and get_sample_all/0Sverker Eriksson2022-01-111-6/+26
| | | | | | | | | | | | | | | And clarify documentation, especially regarding erlang:system_flag(scheduler_wall_time,_).
| | * runtime_tools: Fix bug in scheduler:utilization(Seconds)Sverker Eriksson2022-01-111-7/+2
| | | | | | | | | | | | | | | | | | The returned OldFlag is the old node global state. That should not prevent us from decreasing our process local logical ref counter for scheduler_wall_time.
* | | Fix typos in lib/runtime_toolsKian-Meng, Ang2021-12-283-8/+8
|/ /
* | Update copyright yearRickard Green2021-12-154-4/+4
|/
* Prepare releaseErlang/OTP2021-09-171-1/+1
|
* [runtime_tools] Update app dependenciesMicael Karlberg2021-07-131-1/+1
| | | | OTP-17346
* [observer] Ifdef inclusion of non-supported socket optsMicael Karlberg2021-05-121-12/+31
| | | | | | | Make it possible to "configure" the inclusion of non-supported socket options. OTP-17346
* [observer] Add all socket options to Options listMicael Karlberg2021-05-121-39/+44
| | | | | | | Add even not supported sockets to the list, whith the value set to 'Not Supported'. OTP-17346
* [observer] Add socket options to the 'socket info' windowMicael Karlberg2021-05-121-2/+75
| | | | | | Add a 'Options' section to the 'socket info' window. OTP-17346
* [observer,runtime_tools] CleanupMicael Karlberg2021-05-121-10/+6
| | | | OTP-17346
* [observer,runtime_tools] Add a tab for 'sockets'Micael Karlberg2021-05-121-2/+100
| | | | | | A tab has been added for the 'new' socket(s). OTP-17346
* Merge branch 'maint'Kjell Winblad2021-05-051-3/+3
|\
| * Merge branch 'kjell/runtime_tools/dbg/ERL-1371/OTP-16930/GH-4396' into maintKjell Winblad2021-05-051-3/+3
| |\ | | | | | | | | | | | | * kjell/runtime_tools/dbg/ERL-1371/OTP-16930/GH-4396: GH-4396: exported function instead of fun to set up remote tracing
| | * GH-4396: exported function instead of fun to set up remote tracingKjell Winblad2021-05-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The function `dbg:n/1` used a local fun to set up a tracer on a remote node. This works fine as long as the remote node is running exactly the same version of Erlang/OTP but does not work at all otherwise. This is fixed by exporting the relevant function (`dbg:do_relay/2`) and by calling this function on the remote node to set up remote tracing.
* | | otp: Remove HiPE and HiPE-related accessoriesJohn Högberg2020-11-091-44/+2
| | |
* | | Merge pull request #2630 from richcarl/drop-elib-malloc/OTP-16788Lukas Larsson2020-08-111-1/+0
|\ \ \ | |/ / |/| | Drop remnants of elib_malloc (removed in R15)
| * | Remove obsolete +MYm flagRichard Carlsson2020-05-151-1/+0
| | |
* | | Update lib/runtime_tools/src/appmon_info.erlHritik Soni2020-06-261-1/+1
| | | | | | | | | Co-authored-by: John Högberg <john@erlang.org>
* | | Fixing crash in appmon_info:format for a closed portHritik Soni2020-06-251-1/+5
| | |
* | | Prepare releaseErlang/OTP2020-05-111-2/+2
|/ /
* | Revert "Prepare release"Henrik Nord2020-04-221-2/+2
| | | | | | | | This reverts commit eee1f3aba92b5a741eabfa1cb6eca0632562777a.
* | Prepare releaseErlang/OTP2020-04-221-2/+2
| |
* | Revert "Prepare release"Henrik Nord2020-03-251-2/+2
| | | | | | | | This reverts commit 63638d668efbeb4539ba301328cabbc2636fb154.